https://bugs.winehq.org/show_bug.cgi?id=42727
--- Comment #6 from Claude Heiland-Allen claude@mathr.co.uk --- Possible fix?
/* Windows doesn't allow creating bitmaps larger than 2GiB */ if (bm.bmHeight >= 2LL * 1024 * 1024 * 1024 / bm.bmWidthBytes) { SetLastError( ERROR_NOT_ENOUGH_MEMORY ); return 0; }