]> git.saurik.com Git - wxWidgets.git/commitdiff
Unicode fix.
authorOve Kaaven <ovek@arcticnet.no>
Mon, 14 Jun 1999 17:54:47 +0000 (17:54 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Mon, 14 Jun 1999 17:54:47 +0000 (17:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/cursor.cpp

index 3ad8200c699c9a1a67c9a7cba1a3ea847aae2ad3..0662f7f903271e5c241d7184465f189a955d5a2e 100644 (file)
@@ -105,7 +105,7 @@ wxCursor::wxCursor(const wxString& cursor_file, long flags, int hotSpotX, int ho
 #if wxUSE_RESOURCE_LOADING_IN_MSW
     HBITMAP hBitmap = 0;
     HPALETTE hPalette = 0;
-    bool success = ReadDIB(WXSTRINGCAST cursor_file, &hBitmap, &hPalette) != 0;
+    bool success = ReadDIB(MBSTRINGCAST cursor_file.mb_str(wxConvFile), &hBitmap, &hPalette) != 0;
     if (!success)
       return;
     if (hPalette)