From c001d46f1c158783bc8ef3c8a73aa3f199d09f9f Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 14 Apr 2012 10:40:21 +0000 Subject: [PATCH] [SHELL32] Remove trailing backslash in shellink working dir Patch by Edijs Kolesnikovics (terminedijs at yahoo dot com) See issue #7000 for more details. svn path=/trunk/; revision=56344 --- reactos/dll/win32/shell32/shelllink.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/dll/win32/shell32/shelllink.cpp b/reactos/dll/win32/shell32/shelllink.cpp index 3a0f8742fdc..365bfa9f699 100644 --- a/reactos/dll/win32/shell32/shelllink.cpp +++ b/reactos/dll/win32/shell32/shelllink.cpp @@ -583,6 +583,7 @@ HRESULT WINAPI CShellLink::Load(IStream *stm) if (hdr.dwFlags & SLDF_HAS_WORKINGDIR) { hr = Stream_LoadString(stm, unicode, &sWorkDir); + PathRemoveBackslash(sWorkDir); TRACE("Working Dir -> %s\n", debugstr_w(sWorkDir)); } if (FAILED(hr))