]> git.saurik.com Git - wxWidgets.git/commitdiff
suppressed VC++ 5.0 bool to int conversion warning (when compiling with
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Aug 1998 22:41:02 +0000 (22:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Aug 1998 22:41:02 +0000 (22:41 +0000)
USE_RESSOURCE_LOADING_IN_MSW only)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/cursor.cpp

index f4e2a399e217a72c1f5e4648eb2ada43bca8e875..8eb388fae434a4be42e7680e8ec5543874602e9e 100644 (file)
@@ -105,7 +105,7 @@ wxCursor::wxCursor(const wxString& cursor_file, long flags, int hotSpotX, int ho
 #if USE_RESOURCE_LOADING_IN_MSW
     HBITMAP hBitmap = 0;
     HPALETTE hPalette = 0;
-    bool success = ReadDIB((char *)(const char *)cursor_file, &hBitmap, &hPalette);
+    bool success = ReadDIB((char *)(const char *)cursor_file, &hBitmap, &hPalette) != 0;
     if (!success)
       return;
     if (hPalette)