https://bugs.winehq.org/show_bug.cgi?id=49172
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sloper42@yahoo.com
--- Comment #1 from Robert Wilhelm sloper42@yahoo.com ---
Tests show that err.raise should set err.number to 5 (=invalid argument) when parameter is 0 or >0xffff.
Therefore I think it should read:
if(code == 0 || code > 0xffff) return E_INVALIDARG;
I send a patch to wine-devel.