Fix win32 code path

Fix untested win32 code path, thanks Colomban for pointing out
the error.