Get rid of W->A calls: LoadImageW
Stefan Leichter
Stefan.Leichter at camLine.com
Tue Nov 19 14:10:31 CST 2002
Changelog
------------
replaced CreateDCA by CreateDCW in LoadImageW to Get rid of W->A calls
Index: wine/windows/cursoricon.c
===================================================================
RCS file: /home/wine/wine/windows/cursoricon.c,v
retrieving revision 1.56
diff -u -r1.56 cursoricon.c
--- wine/windows/cursoricon.c 13 Nov 2002 19:43:53 -0000 1.56
+++ wine/windows/cursoricon.c 18 Nov 2002 21:38:42 -0000
@@ -72,6 +72,8 @@
static HDC screen_dc;
+static WCHAR DISPLAYW[] = {'D','I','S','P','L','A','Y',0};
+
/**********************************************************************
* ICONCACHE for cursors/icons loaded with LR_SHARED.
*
@@ -2052,7 +2054,7 @@
return BITMAP_Load( hinst, name, loadflags );
case IMAGE_ICON:
- if (!screen_dc) screen_dc = CreateDCA( "DISPLAY", NULL, NULL, NULL );
+ if (!screen_dc) screen_dc = CreateDCW( DISPLAYW, NULL, NULL, NULL );
if (screen_dc)
{
UINT palEnts = GetSystemPaletteEntries(screen_dc, 0, 0, NULL);
More information about the wine-patches
mailing list