Fixed Win32 context bugs.