[SHELL32_APITEST] -Add some tests for SHParseDisplayName for CORE-12882.
[reactos.git] / rostests / apitests / apphelp / db.cpp
index 70d2023..7ceb9a7 100644 (file)
@@ -1148,6 +1148,7 @@ static void test_mode_generic(const char* workdir, HSDB hsdb, int cur)
     TAGID tagid;
     TAGREF trApphelp;
     DWORD expect_flags = 0, adwExeFlags_0, exe_count;
+    UNICODE_STRING exenameNT;
 
     memset(&query, 0xab, sizeof(query));
 
@@ -1290,6 +1291,16 @@ static void test_mode_generic(const char* workdir, HSDB hsdb, int cur)
     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);
     DeleteFileA(exename);