Author: mjansen
Date: Sat Mar  4 20:27:39 2017
New Revision: 74061

URL: http://svn.reactos.org/svn/reactos?rev=74061&view=rev
Log:
[APPHELP_APITEST] Check which parts of apphelp accept NT paths

Modified:
    trunk/rostests/apitests/apphelp/db.cpp
    trunk/rostests/apitests/apphelp/layerapi.c

Modified: trunk/rostests/apitests/apphelp/db.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/apphelp/db.cpp?rev=74061&r1=74060&r2=74061&view=diff
==============================================================================
--- trunk/rostests/apitests/apphelp/db.cpp      [iso-8859-1] (original)
+++ trunk/rostests/apitests/apphelp/db.cpp      [iso-8859-1] Sat Mar  4 
20:27:39 2017
@@ -1148,6 +1148,7 @@
     TAGID tagid;
     TAGREF trApphelp;
     DWORD expect_flags = 0, adwExeFlags_0, exe_count;
+    UNICODE_STRING exenameNT;
 
     memset(&query, 0xab, sizeof(query));
 
@@ -1289,6 +1290,16 @@
     ret = pSdbTagRefToTagID(hsdb, 0, &pdb, &tagid);
     ok(pdb != NULL && pdb != (PDB)0x12345678, "Expected pdb to be set to a 
valid pdb, was: %p\n", pdb);
     ok(tagid == 0, "Expected tagid to be set to 0, was: 0x%x\n", tagid);
+
+
+
+    if (RtlDosPathNameToNtPathName_U(exenameW, &exenameNT, NULL, NULL))
+    {
+        ret = pSdbGetMatchingExe(hsdb, exenameNT.Buffer, NULL, NULL, 0, 
(SDBQUERYRESULT*)&query);
+        ok(ret, "SdbGetMatchingExe should not fail for %d.\n", cur);
+
+        RtlFreeUnicodeString(&exenameNT);
+    }
 
     if (test_exedata[cur].extra_file)
         DeleteFileA(testfile);

Modified: trunk/rostests/apitests/apphelp/layerapi.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/apphelp/layerapi.c?rev=74061&r1=74060&r2=74061&view=diff
==============================================================================
--- trunk/rostests/apitests/apphelp/layerapi.c  [iso-8859-1] (original)
+++ trunk/rostests/apitests/apphelp/layerapi.c  [iso-8859-1] Sat Mar  4 
20:27:39 2017
@@ -141,6 +141,21 @@
     }
     WideCharToMultiByte(CP_ACP, 0, buffer, -1, resultBuffer, 
sizeof(resultBuffer), NULL, NULL);
     winetest_ok(!strcmp(stringResult, resultBuffer), "Expected the result to 
be '%s', was '%s'\n", stringResult, resultBuffer);
+
+    if (result)
+    {
+        UNICODE_STRING pathNT;
+
+        if (RtlDosPathNameToNtPathName_U(pathW, &pathNT, NULL, NULL))
+        {
+            memset(buffer, 0, sizeof(buffer));
+            dwBufSize = sizeof(buffer);
+            winetest_ok(pSdbGetPermLayerKeys(pathNT.Buffer, buffer, 
&dwBufSize, type) == FALSE, "Expected pSdbGetPermLayerKeys to fail for NT 
path\n");
+
+            RtlFreeUnicodeString(&pathNT);
+        }
+    }
+
 }
 
 


Reply via email to