FreeResource is deprecated. Not needed to free any mem.

svn path=/trunk/; revision=25728
This commit is contained in:
Timo Kreuzer 2007-02-05 13:37:16 +00:00
parent 9d941c2836
commit 5e7eb24549

View file

@ -222,7 +222,6 @@ LoadCursorIconImage(
IconResDir = LockResource(hResource);
if (IconResDir == NULL)
{
FreeResource(hResource);
return NULL;
}
@ -230,8 +229,6 @@ LoadCursorIconImage(
id = LookupIconIdFromDirectoryEx((PBYTE)IconResDir, Icon, width, height,
fuLoad & (LR_DEFAULTCOLOR | LR_MONOCHROME));
FreeResource(hResource);
hResInfo = FindResourceW(hinst, MAKEINTRESOURCEW(id),
Icon ? (LPCWSTR) RT_ICON :
(LPCWSTR) RT_CURSOR);
@ -260,7 +257,6 @@ LoadCursorIconImage(
ResIcon = LockResource(hResource);
if (ResIcon == NULL)
{
FreeResource(hResource);
return NULL;
}
@ -268,7 +264,6 @@ LoadCursorIconImage(
SizeofResource(hinst, hResInfo),
Icon, 0x00030000, width, height,
fuLoad & (LR_DEFAULTCOLOR | LR_MONOCHROME));
FreeResource(hResource);
if (hIcon && 0 != (fuLoad & LR_SHARED))
{