Marcus Meissner : user32: Initialize hICON to NULL (Coverity).

Alexandre Julliard julliard at winehq.org
Wed Dec 30 10:18:16 CST 2009


Module: wine
Branch: master
Commit: 36f9248c1a6e1ffa406d0bf21aaa42997e790806
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=36f9248c1a6e1ffa406d0bf21aaa42997e790806

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Dec 29 23:04:46 2009 +0100

user32: Initialize hICON to NULL (Coverity).

---

 dlls/user32/static.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/static.c b/dlls/user32/static.c
index 5386c84..0c5f5fb 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))
     {




More information about the wine-cvs mailing list