Commit ff75b415 authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard

Remove trailing backslash from DOS paths in GetDisplayNameOf.

parent d948e6ca
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment