Use the ANSI codepage in IShellFolder::GetDisplayNameOf.
This commit is contained in:
parent
f40b5938a2
commit
3531178b8b
@ -1003,7 +1003,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetDisplayNameOf(IShellFolder2* i
|
|||||||
if (!pwszDosPath)
|
if (!pwszDosPath)
|
||||||
return HRESULT_FROM_WIN32(GetLastError());
|
return HRESULT_FROM_WIN32(GetLastError());
|
||||||
PathRemoveBackslashW(pwszDosPath);
|
PathRemoveBackslashW(pwszDosPath);
|
||||||
WideCharToMultiByte(CP_UNIXCP, 0, pwszDosPath, -1, lpName->u.cStr, MAX_PATH, NULL, NULL);
|
WideCharToMultiByte(CP_ACP, 0, pwszDosPath, -1, lpName->u.cStr, MAX_PATH, NULL, NULL);
|
||||||
HeapFree(GetProcessHeap(), 0, pwszDosPath);
|
HeapFree(GetProcessHeap(), 0, pwszDosPath);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user