[PATCH] comctl32/tests: Fix function prototype (PVS-Studio)
Nikolay Sivov
nsivov at codeweavers.com
Tue Oct 13 16:15:32 CDT 2015
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/comctl32/tests/imagelist.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c
index 6f13846..7e8108a 100644
--- a/dlls/comctl32/tests/imagelist.c
+++ b/dlls/comctl32/tests/imagelist.c
@@ -1254,7 +1254,7 @@ static void test_imagelist_storage(void)
static void test_shell_imagelist(void)
{
- BOOL (WINAPI *pSHGetImageList)(INT, REFIID, void**);
+ HRESULT (WINAPI *pSHGetImageList)(INT, REFIID, void**);
IImageList *iml = NULL;
HMODULE hShell32;
HRESULT hr;
@@ -1274,8 +1274,7 @@ static void test_shell_imagelist(void)
}
/* 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);
if (hr != S_OK) {
--
2.6.1
More information about the wine-patches
mailing list