2 * PROJECT: ReactOS API Tests
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Tests for ExtractIconEx routine
5 * COPYRIGHT: Copyright 2019 George Bișoc (george.bisoc@reactos.org)
16 EXTRACTICONTESTS IconTests
[] =
18 /* Executable file with icon */
19 {L
"%SystemRoot%\\System32\\cmd.exe", 1},
21 /* Executable file without icon */
22 {L
"%SystemRoot%\\System32\\autochk.exe", 0},
24 /* Non-existing files */
25 {L
"%SystemRoot%\\non-existent-file.sdf", 0}
28 START_TEST(ExtractIconEx
)
30 UINT i
, nReturnedIcons
;
32 for (i
= 0; i
< _countof(IconTests
); ++i
)
34 nReturnedIcons
= ExtractIconExW(IconTests
[i
].pszFilePath
, 0, NULL
, NULL
, IconTests
[i
].nIcons
);
35 ok(nReturnedIcons
== IconTests
[i
].nIcons
, "ExtractIconExW(%u): Expected %u icons, got %u\n", i
, IconTests
[i
].nIcons
, nReturnedIcons
);