Skip to content

Commit 47b4a94

Browse files
author
Dmitry Chapyshev
committed
[NtUser]
- Initialize cbSize for animationinfo - Use widechar versions of structures svn path=/trunk/; revision=72646
1 parent 3776d19 commit 47b4a94

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

reactos/win32ss/user/ntuser/sysparams.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ SpiUpdatePerUserSystemParameters(VOID)
312312
gspv.serialkeys.cbSize = sizeof(SERIALKEYS);
313313
gspv.soundsentry.cbSize = sizeof(SOUNDSENTRYW);
314314
gspv.highcontrast.cbSize = sizeof(HIGHCONTRASTW);
315+
gspv.animationinfo.cbSize = sizeof(ANIMATIONINFO);
315316

316317
/* Make sure we don't use broken values */
317318
SpiFixupValues();

reactos/win32ss/user/ntuser/sysparams.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typedef struct _SPIVALUES
5252

5353
/* Accessability */
5454
ACCESSTIMEOUT accesstimeout;
55-
HIGHCONTRAST highcontrast;
55+
HIGHCONTRASTW highcontrast;
5656
BOOL bScreenReader;
5757
#if(WINVER >= 0x0600)
5858
AUDIODESCRIPTION audiodescription;
@@ -63,7 +63,7 @@ typedef struct _SPIVALUES
6363
#endif
6464

6565
/* Sound */
66-
SOUNDSENTRY soundsentry;
66+
SOUNDSENTRYW soundsentry;
6767
BOOL bShowSounds;
6868
BOOL bBeep;
6969

@@ -175,11 +175,11 @@ typedef union _SPIBUFFER
175175
STICKYKEYS stickykeys;
176176
ACCESSTIMEOUT accesstimeout;
177177
SERIALKEYS serialkeys;
178-
SOUNDSENTRY soundsentry;
178+
SOUNDSENTRYW soundsentry;
179179
NONCLIENTMETRICSW ncmetrics;
180180
MINIMIZEDMETRICS mmmetrics;
181-
ICONMETRICS iconmetrics;
182-
HIGHCONTRAST highcontrast;
181+
ICONMETRICSW iconmetrics;
182+
HIGHCONTRASTW highcontrast;
183183
ANIMATIONINFO animationinfo;
184184
#if(WINVER >= 0x0600)
185185
AUDIODESCRIPTION audiodescription;

0 commit comments

Comments
 (0)