[SHELL32_APITEST] Fixed SimpleIDListFromPath and SHGetFileInfo tests on NT5 (#8038)

This commit is contained in:
Whindmar Saksit 2025-05-27 00:10:53 +02:00 committed by GitHub
parent 4bdbb3092c
commit c03d7794b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ START_TEST(SHSimpleIDListFromPath)
}
LPITEMIDLIST pidl;
ok_int((pidl = SHSimpleIDListFromPath(L"c:")) != NULL, TRUE);
ok_int((pidl = SHSimpleIDListFromPath(L"c:")) != NULL, LOBYTE(GetVersion()) >= 6);
ILFree(pidl);
ok_int((pidl = SHSimpleIDListFromPath(L"c:\\")) != NULL, TRUE);
ILFree(pidl);

View file

@ -61,7 +61,7 @@ START_TEST(SHGetFileInfo)
my_ok_all_flags(info.dwAttributes, SFGAO_FILESYSTEM | SFGAO_STREAM);
info.dwAttributes = ~SFGAO_VALIDATE;
ok_int(SHGFI(L"c:", info, flags | SHGFI_ATTR_SPECIFIED), TRUE); // ROS fails this, a parsing bug in CDrivesFolder?
ok_int(SHGFI(L"c:", info, flags | SHGFI_ATTR_SPECIFIED), LOBYTE(GetVersion()) >= 6);
my_ok_all_flags(info.dwAttributes, SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR);
info.dwAttributes = ~SFGAO_VALIDATE;