[KERNEL32]

- Fix SetCurrentDirectoryA to return success when setting the current directory again
See issue #6874 for more details.

svn path=/trunk/; revision=56490
This commit is contained in:
Thomas Faber 2012-05-04 10:32:49 +00:00
parent 1cb2379b98
commit f6abb6c7ac

View file

@ -2205,7 +2205,7 @@ SetCurrentDirectoryA(IN LPCSTR lpPathName)
DirName = Basep8BitStringToStaticUnicodeString(lpPathName);
if (!DirName) return FALSE;
if (CheckForSameCurdir(DirName)) return FALSE;
if (CheckForSameCurdir(DirName)) return TRUE;
Status = RtlSetCurrentDirectory_U(DirName);
if (NT_SUCCESS(Status)) return TRUE;