Skip to content

Commit 18fc5a1

Browse files
committed
[USER32] Fix use of uninitialized variable
1 parent 3b8cfa4 commit 18fc5a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

win32ss/user/user32/windows/cursoricon.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ CURSORICON_LoadFromFileW(
16221622
DWORD filesize = 0, BmpIconSize;
16231623
PBYTE bits, pbBmpIcon = NULL;
16241624
HANDLE hCurIcon = NULL;
1625-
CURSORDATA cursorData;
1625+
CURSORDATA cursorData = { 0 };
16261626

16271627
TRACE("loading %s\n", debugstr_w( lpszName ));
16281628

@@ -1646,7 +1646,6 @@ CURSORICON_LoadFromFileW(
16461646
if(!cxDesired) cxDesired = entry->bWidth;
16471647
if(!cyDesired) cyDesired = entry->bHeight;
16481648
/* A bit of preparation */
1649-
ZeroMemory(&cursorData, sizeof(cursorData));
16501649
if(!bIcon)
16511650
{
16521651
cursorData.xHotspot = entry->xHotspot;

0 commit comments

Comments
 (0)