https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6c3775f77c8ed49c18de3…
commit 6c3775f77c8ed49c18de3fab99afed93c62cf692
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu May 14 22:52:22 2020 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu May 14 22:52:22 2020 +0900
[SHELL32] Implement SheShortenPathA (#2785)
Implement shell32!SheShortenPathA function.
---
dll/win32/shell32/stubs.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dll/win32/shell32/stubs.cpp b/dll/win32/shell32/stubs.cpp
index 2daa26c7022..ebba2f3b298 100644
--- a/dll/win32/shell32/stubs.cpp
+++ b/dll/win32/shell32/stubs.cpp
@@ -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;
}
/*