mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
[USER32] Fix use of uninitialized variable
This commit is contained in:
parent
3b8cfa42c1
commit
18fc5a1391
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue