https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #7 from David Kahurani k.kahurani@gmail.com --- (In reply to Keming from comment #6)
Created attachment 73973 [details] proposed patch
maybe this patch can solve this problem
I think the patch will get it running, though, you have duplicated the 'while' loop and it doesn't check for all whitespace. I don't know exactly how this should work, the only way to check it try on on Windows. I suspect all trailing whitespace is stripped.