From ab73d6e903bd56e4007bac9a6929f057fe387d5e Mon Sep 17 00:00:00 2001
From: Stefan Leichter <Stefan.Leichter@camLine.com>
Date: Thu, 21 Nov 2002 21:48:06 +0000
Subject: [PATCH] Replaced CreateDCA by CreateDCW in LoadImageW.

---
 windows/cursoricon.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/windows/cursoricon.c b/windows/cursoricon.c
index 7afa61712d2..4fb6940bea9 100644
--- a/windows/cursoricon.c
+++ b/windows/cursoricon.c
@@ -72,6 +72,8 @@ static RECT CURSOR_ClipRect;       /* Cursor clipping rect */
 
 static HDC screen_dc;
 
+static const WCHAR DISPLAYW[] = {'D','I','S','P','L','A','Y',0};
+
 /**********************************************************************
  * 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 );
 
     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);
-- 
GitLab