use IC instead of DC

svn path=/trunk/; revision=25477
This commit is contained in:
Ged Murphy 2007-01-15 23:37:44 +00:00
parent 01ee458c11
commit 138ba142b5

View file

@ -661,9 +661,9 @@ LookupIconIdFromDirectoryEx(PBYTE xdir,
} }
else else
{ {
HDC hdc = GetDC(0); HDC hdc = CreateICW(NULL, NULL, NULL, NULL);
ColorBits = GetDeviceCaps(hdc, BITSPIXEL); ColorBits = GetDeviceCaps(hdc, BITSPIXEL);
ReleaseDC(0, hdc); DeleteDC(hdc);
} }
if(bIcon) if(bIcon)