Use the ANSI codepage in IShellFolder::GetDisplayNameOf.

This commit is contained in:
Michael Jung 2005-11-23 15:20:33 +01:00 committed by Alexandre Julliard
parent f40b5938a2
commit 3531178b8b
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetDisplayNameOf(IShellFolder2* i
if (!pwszDosPath)
return HRESULT_FROM_WIN32(GetLastError());
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);
}
} else {