[SDK][KERNEL32] Add defines for PEB.AppCompatFlags CORE-12768 #resolve
[reactos.git] / reactos / dll / win32 / kernel32 / client / path.c
index 7c426d6..7d91c05 100644 (file)
@@ -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 (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;
         {
             /* It doesn't, so fail */
             ReturnLength = 0;