Michael Stefaniuc : shell32: Pass the object instead of the iface to an internal helper.

Alexandre Julliard julliard at winehq.org
Fri Jan 27 11:30:41 CST 2012


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jan 27 14:17:46 2012 +0100

shell32: Pass the object instead of the iface to an internal helper.

---

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

diff --git a/dlls/shell32/folders.c b/dlls/shell32/folders.c
index 6f49a3d..0143315 100644
--- a/dlls/shell32/folders.c
+++ b/dlls/shell32/folders.c
@@ -161,10 +161,9 @@ static ULONG WINAPI IExtractIconW_fnRelease(IExtractIconW * iface)
 	return refCount;
 }
 
-static HRESULT getIconLocationForFolder(IExtractIconW *iface, UINT uFlags,
- LPWSTR szIconFile, UINT cchMax, int *piIndex, UINT *pwFlags)
+static HRESULT getIconLocationForFolder(IExtractIconWImpl *This, UINT uFlags, LPWSTR szIconFile,
+        UINT cchMax, int *piIndex, UINT *pwFlags)
 {
-    IExtractIconWImpl *This = (IExtractIconWImpl *)iface;
     int icon_idx;
     WCHAR wszPath[MAX_PATH];
     WCHAR wszCLSIDValue[CHARS_IN_GUID];
@@ -318,8 +317,7 @@ static HRESULT WINAPI IExtractIconW_fnGetIconLocation(
 	}
 	else if (_ILIsFolder (pSimplePidl))
 	{
-            getIconLocationForFolder(iface, uFlags, szIconFile, cchMax, piIndex,
-                                     pwFlags);
+            getIconLocationForFolder(This, uFlags, szIconFile, cchMax, piIndex, pwFlags);
 	}
 	else
 	{




More information about the wine-cvs mailing list