This isn't thread-safe. It would also be better to make this an accessor function for the win field of struct apartment and fix up all callers to use this. I still have to verify on Windows whether this is what it does or whether it does something funny with message loops.
I lack the time and testing abilities to do this right now (and now on xmas break).
Its just a quick hack to get Google Earth running.
Can you update to latest CVS and confirm that this issue is fixed now?
Works fine now, thanks!
Ciao, Marcus