I had meant to try this, but I'm having some build problems
at the moment. I backed out my patch, and found that the
build still fails on the CVS snapshot I took 2 weeks ago. It
reports this error when I run make in xc/programs/Xserver:
[...]
gcc -o XWin.exe -O2 -fno-strength-reduce -Wall
Thanks Harold, that change to win.h did the trick. Too bad
my patch didn't work as well. :-(
As per Harold's advice, I added a call to XCloseDisplay().
Here is the revised (still crude) patch to winwndproc.c:
Index: winwndproc.c
===