Remove trailing backslash from DOS paths in GetDisplayNameOf.

This commit is contained in:
Michael Jung 2005-06-17 12:12:35 +00:00 committed by Alexandre Julliard
parent d948e6ca75
commit ff75b415d2
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@
#include "winuser.h" #include "winuser.h"
#include "objbase.h" #include "objbase.h"
#include "winreg.h" #include "winreg.h"
#include "shlwapi.h"
#include "winternl.h" #include "winternl.h"
#include "wine/debug.h" #include "wine/debug.h"
@ -919,6 +920,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetDisplayNameOf(IShellFolder2* i
if (This->m_dwPathMode == PATHMODE_DOS) { if (This->m_dwPathMode == PATHMODE_DOS) {
char path[MAX_PATH]; char path[MAX_PATH];
GetFullPathNameA(lpName->u.cStr, MAX_PATH, path, NULL); GetFullPathNameA(lpName->u.cStr, MAX_PATH, path, NULL);
PathRemoveBackslashA(path);
strcpy(lpName->u.cStr, path); strcpy(lpName->u.cStr, path);
} }
} else { } else {