From: Lois Gomez csberto@gmail.com
--- dlls/kernelbase/file.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/dlls/kernelbase/file.c b/dlls/kernelbase/file.c index 249f476eb7e..aab96b7b22b 100644 --- a/dlls/kernelbase/file.c +++ b/dlls/kernelbase/file.c @@ -2876,6 +2876,14 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetCurrentDirectoryA( LPCSTR dir ) BOOL WINAPI DECLSPEC_HOTPATCH SetCurrentDirectoryW( LPCWSTR dir ) { UNICODE_STRING dirW; + size_t len = wcslen(dir); + + if (len > 0 && dir[len - 1] == '.') + { + WCHAR *p = (WCHAR *)dir + len - 1; + *p = '\0'; + FIXME("%s . fixed\n", debugstr_w(dir)); + }
RtlInitUnicodeString( &dirW, dir ); return set_ntstatus( RtlSetCurrentDirectory_U( &dirW ));