Aric Stewart : shell32: In SHNameTranslate use the right part of the string for sizing.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 15 04:34:04 CDT 2007


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Tue Aug 14 14:23:15 2007 -0500

shell32: In SHNameTranslate use the right part of the string for sizing.

---

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

diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c
index c820569..87bf677 100644
--- a/dlls/shell32/shlfileop.c
+++ b/dlls/shell32/shlfileop.c
@@ -830,7 +830,7 @@ static DWORD SHNameTranslate(LPWSTR* wString, LPCWSTR* pWToFrom, BOOL more)
 	    aString += size;
 	  } while ((size != 1) && more);
 	  /* The two sizes might be different in the case of multibyte chars */
-	  size = MultiByteToWideChar(CP_ACP, 0, aString, aSize, *wString, 0);
+	  size = MultiByteToWideChar(CP_ACP, 0, (LPCSTR)*pWToFrom, aSize, *wString, 0);
 	  if (*wString) /* only in the second loop */
 	  {
 	    MultiByteToWideChar(CP_ACP, 0, (LPCSTR)*pWToFrom, aSize, *wString, size);




More information about the wine-cvs mailing list