user32: Initialize hICON to NULL (Coverity).

This commit is contained in:
Marcus Meissner 2009-12-29 23:04:46 +01:00 committed by Alexandre Julliard
parent ff12594a15
commit 36f9248c1a

View file

@ -258,7 +258,7 @@ static HANDLE STATIC_GetImage( HWND hwnd, WPARAM wParam, DWORD style )
*/
static HICON STATIC_LoadIconA( HINSTANCE hInstance, LPCSTR name, DWORD style )
{
HICON hicon;
HICON hicon = 0;
if (hInstance && ((ULONG_PTR)hInstance >> 16))
{
@ -284,7 +284,7 @@ static HICON STATIC_LoadIconA( HINSTANCE hInstance, LPCSTR name, DWORD style )
*/
static HICON STATIC_LoadIconW( HINSTANCE hInstance, LPCWSTR name, DWORD style )
{
HICON hicon;
HICON hicon = 0;
if (hInstance && ((ULONG_PTR)hInstance >> 16))
{