win32: fix bug that crept into the previous commit