[USER32] Fix use of uninitialized variable

This commit is contained in:
Timo Kreuzer
2025-04-11 07:24:44 +00:00
parent 3b8cfa42c1
commit 18fc5a1391
+1 -2
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;