Skip to content

Commit c03d779

Browse files
authored
[SHELL32_APITEST] Fixed SimpleIDListFromPath and SHGetFileInfo tests on NT5 (#8038)
1 parent 4bdbb30 commit c03d779

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/rostests/apitests/shell32/ItemIDList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ START_TEST(SHSimpleIDListFromPath)
177177
}
178178

179179
LPITEMIDLIST pidl;
180-
ok_int((pidl = SHSimpleIDListFromPath(L"c:")) != NULL, TRUE);
180+
ok_int((pidl = SHSimpleIDListFromPath(L"c:")) != NULL, LOBYTE(GetVersion()) >= 6);
181181
ILFree(pidl);
182182
ok_int((pidl = SHSimpleIDListFromPath(L"c:\\")) != NULL, TRUE);
183183
ILFree(pidl);

modules/rostests/apitests/shell32/ShellInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ START_TEST(SHGetFileInfo)
6161
my_ok_all_flags(info.dwAttributes, SFGAO_FILESYSTEM | SFGAO_STREAM);
6262

6363
info.dwAttributes = ~SFGAO_VALIDATE;
64-
ok_int(SHGFI(L"c:", info, flags | SHGFI_ATTR_SPECIFIED), TRUE); // ROS fails this, a parsing bug in CDrivesFolder?
64+
ok_int(SHGFI(L"c:", info, flags | SHGFI_ATTR_SPECIFIED), LOBYTE(GetVersion()) >= 6);
6565
my_ok_all_flags(info.dwAttributes, SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR);
6666

6767
info.dwAttributes = ~SFGAO_VALIDATE;

0 commit comments

Comments
 (0)