http://bugs.winehq.org/show_bug.cgi?id=13915
--- Comment #8 from Daniel Rammelt drammelt@gmail.com 2008-11-03 16:48:45 --- Placing some extra debug code around the line causing the crash actually allows OBSE to run perfectly on occasion. It almost seems like a timing issue of some sort.
I replaced the debug line with a simple sleep(1); statement and it has the same effect. Probably 1 out of 5 tries will launch OBSE perfectly. The rest it crashes in FormatMessageW or LocalReAlloc16.
sleep(1); if (!(hMenu = USER_HEAP_ALLOC( sizeof(POPUPMENU) ))) return 0;
I am not really sure what this means, but perhaps it will help someone with a bit more coding skill :)