comctl32/tests: Fix function prototype (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
680ba9330e
commit
490b4eec4b
|
@ -1254,7 +1254,7 @@ static void test_imagelist_storage(void)
|
||||||
|
|
||||||
static void test_shell_imagelist(void)
|
static void test_shell_imagelist(void)
|
||||||
{
|
{
|
||||||
BOOL (WINAPI *pSHGetImageList)(INT, REFIID, void**);
|
HRESULT (WINAPI *pSHGetImageList)(INT, REFIID, void**);
|
||||||
IImageList *iml = NULL;
|
IImageList *iml = NULL;
|
||||||
HMODULE hShell32;
|
HMODULE hShell32;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
@ -1274,8 +1274,7 @@ static void test_shell_imagelist(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get system image list */
|
/* Get system image list */
|
||||||
hr = (pSHGetImageList)(SHIL_SYSSMALL, &IID_IImageList, (void**)&iml);
|
hr = pSHGetImageList(SHIL_SYSSMALL, &IID_IImageList, (void**)&iml);
|
||||||
|
|
||||||
ok(SUCCEEDED(hr), "SHGetImageList failed, hr=%x\n", hr);
|
ok(SUCCEEDED(hr), "SHGetImageList failed, hr=%x\n", hr);
|
||||||
|
|
||||||
if (hr != S_OK) {
|
if (hr != S_OK) {
|
||||||
|
|
Loading…
Reference in New Issue