mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[USER32] Fix use of uninitialized variable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user