user32: Removed some code that is unused after revision 751a09e9839d7273895df24666a0bb2fb51a29c7.

Gerald Pfeifer gerald at pfeifer.com
Tue Oct 12 15:12:51 CDT 2010


This revision removed the following

   hIcon = CreateIconFromResourceEx( bits, dwBytesInRes, ...)

which was the sole users of dwBytesinRes.

Gerald


---
 dlls/user32/cursoricon.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index d2219d2..9f54700 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -1196,7 +1196,6 @@ static HICON CURSORICON_Load(HINSTANCE hInstance, LPCWSTR name,
     CURSORICONDIRENTRY *dirEntry;
     LPBYTE bits;
     WORD wResId;
-    DWORD dwBytesInRes;
     POINT hotspot;
 
     TRACE("%p, %s, %dx%d, depth %d, fCursor %d, flags 0x%04x\n",
@@ -1226,7 +1225,6 @@ static HICON CURSORICON_Load(HINSTANCE hInstance, LPCWSTR name,
         dirEntry = CURSORICON_FindBestIconRes( dir, width, height, depth );
     if (!dirEntry) return 0;
     wResId = dirEntry->wResId;
-    dwBytesInRes = dirEntry->dwBytesInRes;
     FreeResource( handle );
 
     /* Load the resource */
-- 
1.7.2.2



More information about the wine-patches mailing list