FreeResource is deprecated. Not needed to free any mem.
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 5 Feb 2007 13:37:16 +0000 (13:37 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 5 Feb 2007 13:37:16 +0000 (13:37 +0000)
svn path=/trunk/; revision=25728

reactos/dll/win32/user32/windows/bitmap.c

index c04bc45..69c9f15 100644 (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))
       {