https://bugs.winehq.org/show_bug.cgi?id=57306
--- Comment #76 from Rafał Mużyło galtgendo@o2.pl --- ...the first chunk of the patch is likely redundant (it doesn't seem to affect the crash).
The WARN lines are likely too noisy and don't work with Paint (it seems to trash all output).