[NTDLL_APITEST]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 25 Apr 2012 07:57:50 +0000 (07:57 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 25 Apr 2012 07:57:50 +0000 (07:57 +0000)
- Fix GCC build

svn path=/trunk/; revision=56412

rostests/apitests/ntdll/RtlDetermineDosPathNameType.c

index 5dee200..86a53f2 100644 (file)
@@ -146,8 +146,8 @@ START_TEST(RtlDetermineDosPathNameType)
         { L"/\\?",              RtlPathTypeRootLocalDevice },
         { L"\\/?",              RtlPathTypeRootLocalDevice },
         { L"//??",              RtlPathTypeUncAbsolute },
         { L"/\\?",              RtlPathTypeRootLocalDevice },
         { L"\\/?",              RtlPathTypeRootLocalDevice },
         { L"//??",              RtlPathTypeUncAbsolute },
-        { L"//??/",             RtlPathTypeUncAbsolute },
-        { L"//??/C:/",          RtlPathTypeUncAbsolute },
+        { L"//?" L"?/",         RtlPathTypeUncAbsolute },
+        { L"//?" L"?/C:/",      RtlPathTypeUncAbsolute },
         { L"//.",               RtlPathTypeRootLocalDevice },
         { L"\\/.",              RtlPathTypeRootLocalDevice },
         { L"/\\.",              RtlPathTypeRootLocalDevice },
         { L"//.",               RtlPathTypeRootLocalDevice },
         { L"\\/.",              RtlPathTypeRootLocalDevice },
         { L"/\\.",              RtlPathTypeRootLocalDevice },
@@ -180,8 +180,8 @@ START_TEST(RtlDetermineDosPathNameType)
         RtlCopyMemory(FileName, Tests[i].FileName, Length + sizeof(UNICODE_NULL));
         StartSeh()
             PathType = RtlDetermineDosPathNameType_U(FileName);
         RtlCopyMemory(FileName, Tests[i].FileName, Length + sizeof(UNICODE_NULL));
         StartSeh()
             PathType = RtlDetermineDosPathNameType_U(FileName);
+            ok(PathType == Tests[i].PathType, "PathType is %d, expected %d for '%S'\n", PathType, Tests[i].PathType, Tests[i].FileName);
         EndSeh(STATUS_SUCCESS);
         EndSeh(STATUS_SUCCESS);
-        ok(PathType == Tests[i].PathType, "PathType is %d, expected %d for '%S'\n", PathType, Tests[i].PathType, Tests[i].FileName);
         FreeGuarded(FileName);
 
         if (RtlDetermineDosPathNameType_Ustr)
         FreeGuarded(FileName);
 
         if (RtlDetermineDosPathNameType_Ustr)
@@ -195,8 +195,8 @@ START_TEST(RtlDetermineDosPathNameType)
             PathString.MaximumLength = MAXUSHORT;
             StartSeh()
                 PathType = RtlDetermineDosPathNameType_Ustr(&PathString);
             PathString.MaximumLength = MAXUSHORT;
             StartSeh()
                 PathType = RtlDetermineDosPathNameType_Ustr(&PathString);
+                ok(PathType == Tests[i].PathType, "PathType is %d, expected %d for '%S'\n", PathType, Tests[i].PathType, Tests[i].FileName);
             EndSeh(STATUS_SUCCESS);
             EndSeh(STATUS_SUCCESS);
-            ok(PathType == Tests[i].PathType, "PathType is %d, expected %d for '%S'\n", PathType, Tests[i].PathType, Tests[i].FileName);
             FreeGuarded(FileName);
         }
     }
             FreeGuarded(FileName);
         }
     }