From: James McDonnell topgamer7@gmail.com
--- dlls/shell32/tests/shelllink.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index 35773fde551..2f6f828ebf3 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -1055,12 +1055,16 @@ static void test_SHGetStockIconInfo(void) { memset(buffer, '#', sizeof(buffer)); sii->cbSize = sizeof(SHSTOCKICONINFO); - hr = pSHGetStockIconInfo(i, SHGSI_ICONLOCATION, sii); + hr = pSHGetStockIconInfo(i, SHGSI_ICONLOCATION | SHGSI_ICON, sii);
ok(hr == S_OK, "%3d: got 0x%lx, iSysImageIndex: 0x%x, iIcon: 0x%x (expected S_OK)\n", i, hr, sii->iSysImageIndex, sii->iIcon);
+ ok(sii->hIcon != 0, + "%3d: got %p, should be non-zero handle\n", + i, sii->hIcon); + if ((hr == S_OK) && (winetest_debug > 1)) trace("%3d: got iSysImageIndex %3d, iIcon %3d and %s\n", i, sii->iSysImageIndex, sii->iIcon, wine_dbgstr_w(sii->szPath));