I'm 99% sure I fixed this in my last patch submission to winehq a while ago. Seems Alexandre applied it after 20020710, though. So I don't think your patch applies on top of CVS.
Damn your right... At least my patch shoud be right as we produced exactly the same code (I just diffed my source tree with the latest CVS and only the comments differ).
This will teach me to work on out-dated trees :-)
So Alexandre, please discard this patch...
Lionel