Fixed FormatMessage[A|16] against some buffer overflow cases.
[wine.git] / tsx11 / ts_xresource.c
blobef45063bfeae122f7db26aa9aab7958eeca4919a
1 /*
2 * Thread safe wrappers around Xresource calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
10 #include <X11/Xlib.h>
11 #include <X11/Xresource.h>
13 #include "debugtools.h"
14 #include "ts_xresource.h"
15 #include "x11drv.h"
17 DEFAULT_DEBUG_CHANNEL(x11)
19 XrmQuark TSXrmUniqueQuark(void)
21 XrmQuark r;
22 TRACE("Call XrmUniqueQuark\n");
23 EnterCriticalSection( &X11DRV_CritSection );
24 r = XrmUniqueQuark();
25 LeaveCriticalSection( &X11DRV_CritSection );
26 TRACE("Ret XrmUniqueQuark\n");
27 return r;
30 int TSXrmGetResource(XrmDatabase a0, const char* a1, const char* a2, char** a3, XrmValue* a4)
32 int r;
33 TRACE("Call XrmGetResource\n");
34 EnterCriticalSection( &X11DRV_CritSection );
35 r = XrmGetResource(a0, a1, a2, a3, a4);
36 LeaveCriticalSection( &X11DRV_CritSection );
37 TRACE("Ret XrmGetResource\n");
38 return r;
41 XrmDatabase TSXrmGetFileDatabase(const char* a0)
43 XrmDatabase r;
44 TRACE("Call XrmGetFileDatabase\n");
45 EnterCriticalSection( &X11DRV_CritSection );
46 r = XrmGetFileDatabase(a0);
47 LeaveCriticalSection( &X11DRV_CritSection );
48 TRACE("Ret XrmGetFileDatabase\n");
49 return r;
52 XrmDatabase TSXrmGetStringDatabase(const char* a0)
54 XrmDatabase r;
55 TRACE("Call XrmGetStringDatabase\n");
56 EnterCriticalSection( &X11DRV_CritSection );
57 r = XrmGetStringDatabase(a0);
58 LeaveCriticalSection( &X11DRV_CritSection );
59 TRACE("Ret XrmGetStringDatabase\n");
60 return r;
63 void TSXrmMergeDatabases(XrmDatabase a0, XrmDatabase* a1)
65 TRACE("Call XrmMergeDatabases\n");
66 EnterCriticalSection( &X11DRV_CritSection );
67 XrmMergeDatabases(a0, a1);
68 LeaveCriticalSection( &X11DRV_CritSection );
69 TRACE("Ret XrmMergeDatabases\n");
72 void TSXrmParseCommand(XrmDatabase* a0, XrmOptionDescList a1, int a2, const char* a3, int* a4, char** a5)
74 TRACE("Call XrmParseCommand\n");
75 EnterCriticalSection( &X11DRV_CritSection );
76 XrmParseCommand(a0, a1, a2, a3, a4, a5);
77 LeaveCriticalSection( &X11DRV_CritSection );
78 TRACE("Ret XrmParseCommand\n");