No need to create a DC to get the display depth
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 12 May 2009 21:48:25 +0000 (21:48 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 12 May 2009 21:48:25 +0000 (21:48 +0000)
Incidentally, this partly unregresses the /CONSOLE switch if blue.sys is installed

svn path=/trunk/; revision=40906

reactos/dll/win32/shell32/iconcache.c

index d32475b..8a8eb47 100644 (file)
@@ -396,9 +396,10 @@ BOOL SIC_Initialize(void)
         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;
     }