From: James McDonnell <topgamer7(a)gmail.com> --- dlls/shell32/tests/shelllink.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index 35773fde551..8c094370336 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -1055,12 +1055,18 @@ 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); + todo_wine_if(sii->hIcon == 0) { + 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)); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8367