Andrew Talbot : shell32: Remove uninitialized and superfluous struct.

Alexandre Julliard julliard at winehq.org
Tue Mar 24 09:01:56 CDT 2009


Module: wine
Branch: master
Commit: d2e4bcf5315ff0940268adc155e0c308b6c8c198
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d2e4bcf5315ff0940268adc155e0c308b6c8c198

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Mar 23 22:18:47 2009 +0000

shell32: Remove uninitialized and superfluous struct.

---

 dlls/shell32/shell.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/shell.c b/dlls/shell32/shell.c
index 7edc97b..67bdc01 100644
--- a/dlls/shell32/shell.c
+++ b/dlls/shell32/shell.c
@@ -189,7 +189,6 @@ HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16 hInstance,
 {
     HGLOBAL16 hRet = 0;
     HICON16 *RetPtr = NULL;
-    OFSTRUCT ofs;
 
 	TRACE("(%04x,file %s,start %d,extract %d\n",
 		       hInstance, lpszExeFileName, nIconIndex, n);
@@ -202,7 +201,7 @@ HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16 hInstance,
 
 	if (nIconIndex == (UINT16)-1)  /* get number of icons */
 	{
-	  RetPtr[0] = PrivateExtractIconsA(ofs.szPathName, 0, 0, 0, NULL, NULL, 0, LR_DEFAULTCOLOR);
+	  RetPtr[0] = PrivateExtractIconsA(lpszExeFileName, 0, 0, 0, NULL, NULL, 0, LR_DEFAULTCOLOR);
 	}
 	else
 	{
@@ -210,7 +209,7 @@ HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16 hInstance,
 	  HICON *icons;
 
 	  icons = HeapAlloc(GetProcessHeap(), 0, n * sizeof(*icons));
-	  ret = PrivateExtractIconsA(ofs.szPathName, nIconIndex,
+	  ret = PrivateExtractIconsA(lpszExeFileName, nIconIndex,
 	                             GetSystemMetrics(SM_CXICON),
 	                             GetSystemMetrics(SM_CYICON),
 	                             icons, NULL, n, LR_DEFAULTCOLOR);




More information about the wine-cvs mailing list