msvcp: Cast the wait time in _Cnd_timedwait to ULONG.
commit3ea7102cbe4a365f4364bc633f4b7f31f168c1ed
authorStefan Dösinger <stefan@codeweavers.com>
Wed, 6 Dec 2017 12:50:21 +0000 (6 13:50 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 6 Dec 2017 16:01:43 +0000 (6 17:01 +0100)
tree9aec214268391fc0acd69fd947171620a96d02b6
parent25e20ac8eb24cea9678b8a523165eb0ed48026d0
msvcp: Cast the wait time in _Cnd_timedwait to ULONG.

This prevents sign extending it when promoting it to ULONGLONG. This
fixes high CPU usage in Wargaming Game Center that was caused by
_Cnd_timedwait instantly returning timeout instead of waiting for the
requested 30 days.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcp90/misc.c