From 36f9248c1a6e1ffa406d0bf21aaa42997e790806 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 29 Dec 2009 23:04:46 +0100 Subject: [PATCH] user32: Initialize hICON to NULL (Coverity). --- dlls/user32/static.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/static.c b/dlls/user32/static.c index 5386c84021e..0c5f5fba212 100644 --- a/dlls/user32/static.c +++ b/dlls/user32/static.c @@ -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)) {