[SHELL32] Implement SheShortenPathA (#2785)

Implement shell32!SheShortenPathA function.
This commit is contained in:
Katayama Hirofumi MZ 2020-05-14 22:52:22 +09:00 committed by GitHub
parent b7a97a2af2
commit 6c3775f77c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -453,8 +453,12 @@ EXTERN_C BOOL
WINAPI
SheShortenPathA(LPSTR lpPath, BOOL bShorten)
{
FIXME("SheShortenPathA() stub\n");
return FALSE;
BOOL ret;
WCHAR szPath[MAX_PATH];
MultiByteToWideChar(CP_ACP, 0, lpPath, -1, szPath, _countof(szPath));
ret = SheShortenPathW(szPath, bShorten);
WideCharToMultiByte(CP_ACP, 0, szPath, -1, lpPath, MAX_PATH, NULL, NULL);
return ret;
}
/*