mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:45:39 +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;
|
DWORD filesize = 0, BmpIconSize;
|
||||||
PBYTE bits, pbBmpIcon = NULL;
|
PBYTE bits, pbBmpIcon = NULL;
|
||||||
HANDLE hCurIcon = NULL;
|
HANDLE hCurIcon = NULL;
|
||||||
CURSORDATA cursorData;
|
CURSORDATA cursorData = { 0 };
|
||||||
|
|
||||||
TRACE("loading %s\n", debugstr_w( lpszName ));
|
TRACE("loading %s\n", debugstr_w( lpszName ));
|
||||||
|
|
||||||
|
@ -1646,7 +1646,6 @@ CURSORICON_LoadFromFileW(
|
||||||
if(!cxDesired) cxDesired = entry->bWidth;
|
if(!cxDesired) cxDesired = entry->bWidth;
|
||||||
if(!cyDesired) cyDesired = entry->bHeight;
|
if(!cyDesired) cyDesired = entry->bHeight;
|
||||||
/* A bit of preparation */
|
/* A bit of preparation */
|
||||||
ZeroMemory(&cursorData, sizeof(cursorData));
|
|
||||||
if(!bIcon)
|
if(!bIcon)
|
||||||
{
|
{
|
||||||
cursorData.xHotspot = entry->xHotspot;
|
cursorData.xHotspot = entry->xHotspot;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue