projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01ee458
)
use IC instead of DC
author
Ged Murphy
<gedmurphy@reactos.org>
Mon, 15 Jan 2007 23:37:44 +0000
(23:37 +0000)
committer
Ged Murphy
<gedmurphy@reactos.org>
Mon, 15 Jan 2007 23:37:44 +0000
(23:37 +0000)
svn path=/trunk/; revision=25477
reactos/dll/win32/user32/windows/icon.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/user32/windows/icon.c
b/reactos/dll/win32/user32/windows/icon.c
index
218b3ef
..
b62e700
100644
(file)
--- a/
reactos/dll/win32/user32/windows/icon.c
+++ b/
reactos/dll/win32/user32/windows/icon.c
@@
-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)