variable redefinition in win32_dispatch (cherry picked from commit f10aaea37433b60ed3e0b7adcc7b1764c8b0b518)