mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
use IC instead of DC
svn path=/trunk/; revision=25477
This commit is contained in:
parent
01ee458c11
commit
138ba142b5
1 changed files with 2 additions and 2 deletions
|
@ -661,9 +661,9 @@ LookupIconIdFromDirectoryEx(PBYTE xdir,
|
|||
}
|
||||
else
|
||||
{
|
||||
HDC hdc = GetDC(0);
|
||||
HDC hdc = CreateICW(NULL, NULL, NULL, NULL);
|
||||
ColorBits = GetDeviceCaps(hdc, BITSPIXEL);
|
||||
ReleaseDC(0, hdc);
|
||||
DeleteDC(hdc);
|
||||
}
|
||||
|
||||
if(bIcon)
|
||||
|
|
Loading…
Reference in a new issue