memory guard fix in win32