From ff75b415d265198604b91bd8184e72d43248905d Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Fri, 17 Jun 2005 12:12:35 +0000 Subject: [PATCH] Remove trailing backslash from DOS paths in GetDisplayNameOf. --- dlls/shell32/shfldr_unixfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index 7fffa75a71d..d02a0664aaf 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -42,6 +42,7 @@ #include "winuser.h" #include "objbase.h" #include "winreg.h" +#include "shlwapi.h" #include "winternl.h" #include "wine/debug.h" @@ -919,6 +920,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetDisplayNameOf(IShellFolder2* i if (This->m_dwPathMode == PATHMODE_DOS) { char path[MAX_PATH]; GetFullPathNameA(lpName->u.cStr, MAX_PATH, path, NULL); + PathRemoveBackslashA(path); strcpy(lpName->u.cStr, path); } } else { -- 2.11.4.GIT