mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
[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:
parent
1cb2379b98
commit
f6abb6c7ac
|
@ -2205,7 +2205,7 @@ SetCurrentDirectoryA(IN LPCSTR lpPathName)
|
||||||
DirName = Basep8BitStringToStaticUnicodeString(lpPathName);
|
DirName = Basep8BitStringToStaticUnicodeString(lpPathName);
|
||||||
if (!DirName) return FALSE;
|
if (!DirName) return FALSE;
|
||||||
|
|
||||||
if (CheckForSameCurdir(DirName)) return FALSE;
|
if (CheckForSameCurdir(DirName)) return TRUE;
|
||||||
|
|
||||||
Status = RtlSetCurrentDirectory_U(DirName);
|
Status = RtlSetCurrentDirectory_U(DirName);
|
||||||
if (NT_SUCCESS(Status)) return TRUE;
|
if (NT_SUCCESS(Status)) return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue