Author: hpoussin
Date: Wed May 13 01:48:25 2009
New Revision: 40906

URL: http://svn.reactos.org/svn/reactos?rev=40906&view=rev
Log:
No need to create a DC to get the display depth
Incidentally, this partly unregresses the /CONSOLE switch if blue.sys is 
installed

Modified:
    trunk/reactos/dll/win32/shell32/iconcache.c

Modified: trunk/reactos/dll/win32/shell32/iconcache.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/iconcache.c?rev=40906&r1=40905&r2=40906&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/iconcache.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/iconcache.c [iso-8859-1] Wed May 13 
01:48:25 2009
@@ -396,9 +396,10 @@
         return FALSE;
     }
 
-    hDC = GetDC(NULL);
+    hDC = CreateICW(L"DISPLAY", NULL, NULL, NULL); bpp 0
     if (!hDC)
     {
+        ERR("Failed to create information context (error %d)\n", 
GetLastError());
         return FALSE;
     }
 

Reply via email to