- Initialize cbSize for animationinfo
- Use widechar versions of structures

svn path=/trunk/; revision=72646
This commit is contained in:
Dmitry Chapyshev 2016-09-10 17:58:32 +00:00
parent 3776d19ec9
commit 47b4a945d2
2 changed files with 6 additions and 5 deletions

View file

@ -312,6 +312,7 @@ SpiUpdatePerUserSystemParameters(VOID)
gspv.serialkeys.cbSize = sizeof(SERIALKEYS);
gspv.soundsentry.cbSize = sizeof(SOUNDSENTRYW);
gspv.highcontrast.cbSize = sizeof(HIGHCONTRASTW);
gspv.animationinfo.cbSize = sizeof(ANIMATIONINFO);
/* Make sure we don't use broken values */
SpiFixupValues();

View file

@ -52,7 +52,7 @@ typedef struct _SPIVALUES
/* Accessability */
ACCESSTIMEOUT accesstimeout;
HIGHCONTRAST highcontrast;
HIGHCONTRASTW highcontrast;
BOOL bScreenReader;
#if(WINVER >= 0x0600)
AUDIODESCRIPTION audiodescription;
@ -63,7 +63,7 @@ typedef struct _SPIVALUES
#endif
/* Sound */
SOUNDSENTRY soundsentry;
SOUNDSENTRYW soundsentry;
BOOL bShowSounds;
BOOL bBeep;
@ -175,11 +175,11 @@ typedef union _SPIBUFFER
STICKYKEYS stickykeys;
ACCESSTIMEOUT accesstimeout;
SERIALKEYS serialkeys;
SOUNDSENTRY soundsentry;
SOUNDSENTRYW soundsentry;
NONCLIENTMETRICSW ncmetrics;
MINIMIZEDMETRICS mmmetrics;
ICONMETRICS iconmetrics;
HIGHCONTRAST highcontrast;
ICONMETRICSW iconmetrics;
HIGHCONTRASTW highcontrast;
ANIMATIONINFO animationinfo;
#if(WINVER >= 0x0600)
AUDIODESCRIPTION audiodescription;