Piotr Caban : shell32: Don' t convert output parameter in SHBrowseForFolderA (Valgrind).

Alexandre Julliard julliard at winehq.org
Tue Oct 18 12:56:29 CDT 2011


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Oct 18 15:23:26 2011 +0200

shell32: Don't convert output parameter in SHBrowseForFolderA (Valgrind).

---

 dlls/shell32/brsfolder.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c
index 0a780b9..38195fe 100644
--- a/dlls/shell32/brsfolder.c
+++ b/dlls/shell32/brsfolder.c
@@ -1068,10 +1068,7 @@ LPITEMIDLIST WINAPI SHBrowseForFolderA (LPBROWSEINFOA lpbi)
     bi.hwndOwner = lpbi->hwndOwner;
     bi.pidlRoot = lpbi->pidlRoot;
     if (lpbi->pszDisplayName)
-    {
         bi.pszDisplayName = HeapAlloc( GetProcessHeap(), 0, MAX_PATH * sizeof(WCHAR) );
-        MultiByteToWideChar( CP_ACP, 0, lpbi->pszDisplayName, -1, bi.pszDisplayName, MAX_PATH );
-    }
     else
         bi.pszDisplayName = NULL;
 




More information about the wine-cvs mailing list