Win32 context sharing fix