mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
[SHELL32]
* Apply Wine commit bfad4fa9 by Piotr Caban: Don't convert output parameter in SHBrowseForFolderA (Valgrind). CORE-8540 svn path=/branches/shell-experiments/; revision=65282
This commit is contained in:
parent
7d0ca528ce
commit
2aebe831cb
|
@ -1073,10 +1073,7 @@ LPITEMIDLIST WINAPI SHBrowseForFolderA (LPBROWSEINFOA lpbi)
|
||||||
bi.hwndOwner = lpbi->hwndOwner;
|
bi.hwndOwner = lpbi->hwndOwner;
|
||||||
bi.pidlRoot = lpbi->pidlRoot;
|
bi.pidlRoot = lpbi->pidlRoot;
|
||||||
if (lpbi->pszDisplayName)
|
if (lpbi->pszDisplayName)
|
||||||
{
|
|
||||||
bi.pszDisplayName = HeapAlloc( GetProcessHeap(), 0, MAX_PATH * sizeof(WCHAR) );
|
bi.pszDisplayName = HeapAlloc( GetProcessHeap(), 0, MAX_PATH * sizeof(WCHAR) );
|
||||||
MultiByteToWideChar( CP_ACP, 0, lpbi->pszDisplayName, -1, bi.pszDisplayName, MAX_PATH );
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
bi.pszDisplayName = NULL;
|
bi.pszDisplayName = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue