[USER32] Fix use of uninitialized variable

This commit is contained in:
Timo Kreuzer 2025-04-10 17:21:26 +03:00
parent 3b8cfa42c1
commit 18fc5a1391

View file

@ -1622,7 +1622,7 @@ CURSORICON_LoadFromFileW(
DWORD filesize = 0, BmpIconSize;
PBYTE bits, pbBmpIcon = NULL;
HANDLE hCurIcon = NULL;
CURSORDATA cursorData;
CURSORDATA cursorData = { 0 };
TRACE("loading %s\n", debugstr_w( lpszName ));
@ -1646,7 +1646,6 @@ CURSORICON_LoadFromFileW(
if(!cxDesired) cxDesired = entry->bWidth;
if(!cyDesired) cyDesired = entry->bHeight;
/* A bit of preparation */
ZeroMemory(&cursorData, sizeof(cursorData));
if(!bIcon)
{
cursorData.xHotspot = entry->xHotspot;