Replaced CreateDCA by CreateDCW in LoadImageW.

This commit is contained in:
Stefan Leichter 2002-11-21 21:48:06 +00:00 committed by Alexandre Julliard
parent 43c3dc4d33
commit ab73d6e903
1 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,8 @@ static RECT CURSOR_ClipRect; /* Cursor clipping rect */
static HDC screen_dc; static HDC screen_dc;
static const WCHAR DISPLAYW[] = {'D','I','S','P','L','A','Y',0};
/********************************************************************** /**********************************************************************
* ICONCACHE for cursors/icons loaded with LR_SHARED. * ICONCACHE for cursors/icons loaded with LR_SHARED.
* *
@ -2052,7 +2054,7 @@ HANDLE WINAPI LoadImageW( HINSTANCE hinst, LPCWSTR name, UINT type,
return BITMAP_Load( hinst, name, loadflags ); return BITMAP_Load( hinst, name, loadflags );
case IMAGE_ICON: 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) if (screen_dc)
{ {
UINT palEnts = GetSystemPaletteEntries(screen_dc, 0, 0, NULL); UINT palEnts = GetSystemPaletteEntries(screen_dc, 0, 0, NULL);