Skip to content

Commit def41ef

Browse files
katahiromzvgalnt
authored andcommitted
[SHELL32] Implement SheShortenPathA (reactos#2785)
Implement shell32!SheShortenPathA function.
1 parent 4a09792 commit def41ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dll/win32/shell32/stubs.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,12 @@ EXTERN_C BOOL
453453
WINAPI
454454
SheShortenPathA(LPSTR lpPath, BOOL bShorten)
455455
{
456-
FIXME("SheShortenPathA() stub\n");
457-
return FALSE;
456+
BOOL ret;
457+
WCHAR szPath[MAX_PATH];
458+
MultiByteToWideChar(CP_ACP, 0, lpPath, -1, szPath, _countof(szPath));
459+
ret = SheShortenPathW(szPath, bShorten);
460+
WideCharToMultiByte(CP_ACP, 0, szPath, -1, lpPath, MAX_PATH, NULL, NULL);
461+
return ret;
458462
}
459463

460464
/*

0 commit comments

Comments
 (0)