Release 980215

Sun Feb 15 12:02:59 1998  Alexandre Julliard  <julliard@lrc.epfl.ch>

	* [graphics/x11drv/*.c] [objects/*.c]
	A few X11 critical section optimizations, mostly with XGet/PutPixel.

	* [scheduler/sysdeps.c] [misc/main.c]
	Make sure X11 critical section is available before any Xlib call.

	* [if1632/relay.c] [tools/build.c]
	Yet another attempt at fixing Catch/Throw.

	* [loader/pe_image.c]
	Fixed broken PE DLL loading.

	* [include/winnt.h] [scheduler/handle.c] [scheduler/*.c]
	Implemented handle access rights.
	Added Get/SetHandleInformation.

Sun Feb 15 09:45:23 1997  Andreas Mohr <100.30936@germany.net>

	* [misc/winsock.c]
	Fixed bug in WSACleanup which lead to crashes in WINSOCK_HandleIO.

	* [graphics/fontengine.c] [include/font.h]
	Minor improvements.

	* [memory/global.c]
	Implemented GlobalEntryHandle.

	* [misc/toolhelp.c]
	Fixed a memory bug in Notify*register.

	* [misc/w32scomb.c]
	Improved Get16DLLAddress.

	* [objects/gdiobj.c]
	Implemented GdiSeeGdiDo.


Sat Feb 14 14:57:39 1998  John Richardson <jrichard@zko.dec.com>

	* [win32/console.c]
	Added the console implementation, AllocConsole, FreeConsole,
	CONSOLE_InheritConsole.

	* [documentation/console]
	Some documentation on the console.

	* [include/winerror.h]
	Added some error defines.

	* [scheduler/k32obj.c]
	Registered the scheduler ops.

Fri Feb 13 19:35:35 1998  James Moody  <013263m@dragon.acadiau.ca>

	* [ole/ole2nls.c]
	Some English language fixes for missing values.

	* [controls/listbox.c]
	Fix to allow an empty listbox to deselect all items.

	* [relay32/user32.spec] [windows/keyboard.c]
	CreateAcceleratorTableA stub method.

	* [windows/sysmetrics.c]
	Added missing SM_CXCURSOR & SM_CYCURSOR initializers.

	* [windows/message.c]
	PostThreadMessage32A stub method.

Fri Feb 13 17:12:24 1998  Jim Peterson <jspeter@roanoke.infi.net>

	* [libtest/hello3res.rc] [libtest/hello3.c] [libtest/Makefile.in]
	Updated the 'hello3' test so that it functions properly again.

Fri Feb 13 14:08:07 1998  Martin Boehme  <boehme@informatik.mu-luebeck.de>
	
	* [graphics/mapping.c]
	Fixed the embarrassing bugs I introduced into DPtoLP and
	LPtoDP.

	* [windows/scroll.c]
	Prevent ScrollWindow32 from sending WM_ERASEBKGND.

Thu Feb 12 22:46:53 1998  Huw D M Davies <h.davies1@physics.oxford.ac.uk>

	* [objects/metafile] [include/ldt.h]
	Fix to cope with records longer than 64K.

	* [windows/clipboard.c]
	Clean up bitmaps and metapicts properly.

Mon Feb  3 21:52:18 1998  Karl Backström <karl_b@geocities.com>

	* [programs/winhelp/Sw.rc] [resources/sysres_Sw.rc]
	Minor update of Swedish language support.
diff --git a/tsx11/ts_xresource.c b/tsx11/ts_xresource.c
index cb173d0..4eda899 100644
--- a/tsx11/ts_xresource.c
+++ b/tsx11/ts_xresource.c
@@ -1,13 +1,12 @@
 /*
  * Thread safe wrappers around Xresource calls.
  * This file was generated automatically by tools/make_X11wrappers
- *
- * Copyright 1998 Kristian Nielsen
+ * DO NOT EDIT!
  */
 
 #include <X11/Xlib.h>
 #include <X11/Xresource.h>
-#include "tsx11defs.h"
+#include "x11drv.h"
 #include "stddebug.h"
 #include "debug.h"
 
@@ -15,9 +14,9 @@
 {
   XrmQuark  r;
   dprintf_x11(stddeb, "Call XrmUniqueQuark\n");
-  X11_LOCK();
+  EnterCriticalSection( &X11DRV_CritSection );
   r = XrmUniqueQuark();
-  X11_UNLOCK();
+  LeaveCriticalSection( &X11DRV_CritSection );
   dprintf_x11(stddeb, "Ret XrmUniqueQuark\n");
   return r;
 }
@@ -26,9 +25,9 @@
 {
   int   r;
   dprintf_x11(stddeb, "Call XrmGetResource\n");
-  X11_LOCK();
+  EnterCriticalSection( &X11DRV_CritSection );
   r = XrmGetResource(a0, a1, a2, a3, a4);
-  X11_UNLOCK();
+  LeaveCriticalSection( &X11DRV_CritSection );
   dprintf_x11(stddeb, "Ret XrmGetResource\n");
   return r;
 }
@@ -37,9 +36,9 @@
 {
   XrmDatabase  r;
   dprintf_x11(stddeb, "Call XrmGetFileDatabase\n");
-  X11_LOCK();
+  EnterCriticalSection( &X11DRV_CritSection );
   r = XrmGetFileDatabase(a0);
-  X11_UNLOCK();
+  LeaveCriticalSection( &X11DRV_CritSection );
   dprintf_x11(stddeb, "Ret XrmGetFileDatabase\n");
   return r;
 }
@@ -48,9 +47,9 @@
 {
   XrmDatabase  r;
   dprintf_x11(stddeb, "Call XrmGetStringDatabase\n");
-  X11_LOCK();
+  EnterCriticalSection( &X11DRV_CritSection );
   r = XrmGetStringDatabase(a0);
-  X11_UNLOCK();
+  LeaveCriticalSection( &X11DRV_CritSection );
   dprintf_x11(stddeb, "Ret XrmGetStringDatabase\n");
   return r;
 }
@@ -58,17 +57,17 @@
 void  TSXrmMergeDatabases(XrmDatabase a0, XrmDatabase* a1)
 {
   dprintf_x11(stddeb, "Call XrmMergeDatabases\n");
-  X11_LOCK();
+  EnterCriticalSection( &X11DRV_CritSection );
   XrmMergeDatabases(a0, a1);
-  X11_UNLOCK();
+  LeaveCriticalSection( &X11DRV_CritSection );
   dprintf_x11(stddeb, "Ret XrmMergeDatabases\n");
 }
 
 void  TSXrmParseCommand(XrmDatabase* a0, XrmOptionDescList a1, int a2, const  char* a3, int* a4, char** a5)
 {
   dprintf_x11(stddeb, "Call XrmParseCommand\n");
-  X11_LOCK();
+  EnterCriticalSection( &X11DRV_CritSection );
   XrmParseCommand(a0, a1, a2, a3, a4, a5);
-  X11_UNLOCK();
+  LeaveCriticalSection( &X11DRV_CritSection );
   dprintf_x11(stddeb, "Ret XrmParseCommand\n");
 }