Author: tkreuzer
Date: Mon Feb 5 16:37:16 2007
New Revision: 25728
URL:
http://svn.reactos.org/svn/reactos?rev=25728&view=rev
Log:
FreeResource is deprecated. Not needed to free any mem.
Modified:
trunk/reactos/dll/win32/user32/windows/bitmap.c
Modified: trunk/reactos/dll/win32/user32/windows/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/b…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/bitmap.c (original)
+++ trunk/reactos/dll/win32/user32/windows/bitmap.c Mon Feb 5 16:37:16 2007
@@ -222,15 +222,12 @@
IconResDir = LockResource(hResource);
if (IconResDir == NULL)
{
- FreeResource(hResource);
return NULL;
}
/* Find the best fitting in the IconResDir for this resolution */
id = LookupIconIdFromDirectoryEx((PBYTE)IconResDir, Icon, width, height,
fuLoad & (LR_DEFAULTCOLOR | LR_MONOCHROME));
-
- FreeResource(hResource);
hResInfo = FindResourceW(hinst, MAKEINTRESOURCEW(id),
Icon ? (LPCWSTR) RT_ICON :
@@ -260,7 +257,6 @@
ResIcon = LockResource(hResource);
if (ResIcon == NULL)
{
- FreeResource(hResource);
return NULL;
}
@@ -268,7 +264,6 @@
SizeofResource(hinst, hResInfo),
Icon, 0x00030000, width, height,
fuLoad & (LR_DEFAULTCOLOR | LR_MONOCHROME));
- FreeResource(hResource);
if (hIcon && 0 != (fuLoad & LR_SHARED))
{