mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:05:43 +00:00
FreeResource is deprecated. Not needed to free any mem.
svn path=/trunk/; revision=25728
This commit is contained in:
parent
9d941c2836
commit
5e7eb24549
1 changed files with 0 additions and 5 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue