026dbc89bf
`WaitForSingleObject` returns a `DWORD`, not an int, so assign `retval` as such and it should fix the error.