If rawinput_from_hardware_message generates an error then the number of
packets handled may be less then the size of the buffer. Correctly
report only the successfully processed packets to avoid using
uninitialized data.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1364
This merge request allows for statements on the same line as ELSE:
```
Dim vrOption
vrOption = 3
If vrOption = 1 Then
Wscript.Echo "vroption is 1"
ElseIf vrOption = 2 Then
Wscript.Echo "vroption is 2"
Else If vrOption = 3 Then
Wscript.Echo "vroption is 3"
End If
End If
```
Fixes https://bugs.winehq.org/show_bug.cgi?id=53873
Combined effort from myself and Nikolay Sivov
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1385
On Mon Nov 14 20:46:59 2022 +0000, Bartosz Kosiorek wrote:
> Is `#if _MSVCR_VER<=120` necessary?
It's not necessary for the dlls to work correctly. It makes dlls smaller (at least until some kind of link time optimization is enabled). It also speeds up compilation.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1365#note_15998