fixed warnings
[reactos.git] / rosapps / games / solitaire / cardlib / cardbitmaps.cpp
index 9c5b4da..2611fa0 100644 (file)
@@ -22,7 +22,7 @@ void PaintRect(HDC hdc, RECT *rect, COLORREF col);
 void LoadCardBitmapsFromLibrary(HINSTANCE hCardDll, int *pwidth, int *pheight)\r
 {\r
     HBITMAP   hBitmap;\r
-    HDC          hdcCard;\r
+    HDC          hdcCard = NULL;\r
     HANDLE      hOld;\r
     int        i, xpos;\r
     int        width, height;\r
@@ -41,16 +41,16 @@ void LoadCardBitmapsFromLibrary(HINSTANCE hCardDll, int *pwidth, int *pheight)
         \r
         width  = bmp.bmWidth;\r
         height = bmp.bmHeight;\r
-        \r
+\r
         if(i == 0)    //if first time through, create BIG bitmap..\r
         {\r
             HDC hdc = GetDC(0);\r
             __hdcCardBitmaps = CreateCompatibleDC(hdc);\r
             __hbmCardBitmaps = CreateCompatibleBitmap(hdc, width * NUMCARDBITMAPS, height);\r
             SelectObject(__hdcCardBitmaps, __hbmCardBitmaps);\r
-            \r
+\r
             hdcCard = CreateCompatibleDC(0);\r
-            \r
+\r
             ReleaseDC(0, hdc);\r
         }\r
         \r