https://bugs.winehq.org/show_bug.cgi?id=37652
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Austin English from comment #0)
==17729== Invalid read of size 4 ==17729== at 0x4B7DE47: is_valid (imagelist.c:3756) ==17729== by 0x4B80547: ImageList_Destroy (imagelist.c:888) ==17729== by 0x49BCFCF: func_imagelist (imagelist.c:1992) ==17729== by 0x49A5837: main (test.h:584) ==17729== Address 0xdeadbeef is on thread 1's stack ==17729==
==17729== Invalid read of size 4 ==17729== at 0x4B7DE47: is_valid (imagelist.c:3756) ==17729== by 0x4B839DD: ImageList_ReplaceIcon (imagelist.c:2577) ==17729== by 0x49BD6CB: test_add_remove (imagelist.c:418) ==17729== by 0x49BD6CB: func_imagelist (???:0) ==17729== by 0x49A5837: main (test.h:584) ==17729== Address 0xdeadbeef is on thread 1's stack ==17729==
==17729== Invalid read of size 4 ==17729== at 0x4B7DE47: is_valid (imagelist.c:3756) ==17729== by 0x4B82647: ImageList_GetImageCount (imagelist.c:1860) ==17729== by 0x49BD78E: test_imagecount (imagelist.c:429) ==17729== by 0x49BD78E: func_imagelist (???:0) ==17729== by 0x49A5837: main (test.h:584) ==17729== Address 0xdeadbeef is on thread 1's stack ==17729==
==17729== Invalid read of size 4 ==17729== at 0x4B7DE47: is_valid (imagelist.c:3756) ==17729== by 0x4B80B3A: ImageList_DrawIndirect (imagelist.c:1378) ==17729== by 0x49BDC3F: func_imagelist (imagelist.c:502) ==17729== by 0x49A5837: main (test.h:584) ==17729== Address 0xdeadbeef is on thread 1's stack ==17729==
==17249== Invalid read of size 4 ==17249== at 0x4DA1E47: is_valid (imagelist.c:3756) ==17249== by 0x4DA6594: ImageList_GetIconSize (imagelist.c:1832) ==17249== by 0x4BBE85C: test_iconsize (imagelist.c:1967) ==17249== by 0x4BBE85C: func_imagelist (???:0) ==17249== by 0x4BA5837: main (test.h:584) ==17249== Address 0xdeadbeef is on thread 1's stack ==17249==
Those all are intentional - see address value, you should supress them.