X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdll%2Fwin32%2Fkernel32%2Fclient%2Fpath.c;h=7d91c052a85b4c87e33459355e9be87e35b55e76;hp=7c426d631f4745d83fad792788925381535809ef;hb=17a622f5069924b24754e370ab20a09c5ac7ddaa;hpb=eb5ff5ce187aa06e0e764aa30c81eda4c223ceb4;ds=sidebyside diff --git a/reactos/dll/win32/kernel32/client/path.c b/reactos/dll/win32/kernel32/client/path.c index 7c426d631f4..7d91c052a85 100644 --- a/reactos/dll/win32/kernel32/client/path.c +++ b/reactos/dll/win32/kernel32/client/path.c @@ -1861,7 +1861,7 @@ GetShortPathNameW(IN LPCWSTR lpszLongPath, if (GetFileAttributesW(lpszLongPath) == INVALID_FILE_ATTRIBUTES) { /* Windows checks for an application compatibility flag to allow this */ - if (!(NtCurrentPeb()) || !(NtCurrentPeb()->AppCompatFlags.LowPart & 1)) + if (!(NtCurrentPeb()) || !(NtCurrentPeb()->AppCompatFlags.LowPart & GetShortPathNameNT4)) { /* It doesn't, so fail */ ReturnLength = 0;