Remove trailing backslash from DOS paths in GetDisplayNameOf.
This commit is contained in:
parent
d948e6ca75
commit
ff75b415d2
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue