mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 05:36:56 +00:00
shell32: In SHNameTranslate use the right part of the string for sizing.
This commit is contained in:
parent
76195d9a49
commit
fdd42046fb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user