>From 1a1e31c1d2bdc0b94a903b6566f58cc49cb909cb Mon Sep 17 00:00:00 2001
From: Peter Dons Tychsen <donpedro@tdcadsl.dk>
Date: Fri, 27 Jul 2007 01:43:49 +0200
Subject: [PATCH] Added the faultlib DLL which is needed for some newer games. E.g. "Company of Heroes" does not run without it.

---
 dlls/faultrep/Makefile.in   |   12 ++++++++++++
 dlls/faultrep/faultrep.c    |   37 +++++++++++++++++++++++++++++++++++++
 dlls/faultrep/faultrep.spec |    1 +
 3 files changed, 50 insertions(+), 0 deletions(-)
 create mode 100644 dlls/faultrep/Makefile.in
 create mode 100644 dlls/faultrep/faultrep.c
 create mode 100644 dlls/faultrep/faultrep.spec

diff --git a/dlls/faultrep/Makefile.in b/dlls/faultrep/Makefile.in
new file mode 100644
index 0000000..e6e04a2
--- /dev/null
+++ b/dlls/faultrep/Makefile.in
@@ -0,0 +1,12 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = faultrep.dll
+IMPORTS   = kernel32
+
+C_SRCS = faultrep.c
+
+@MAKE_DLL_RULES@
+
+@DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/faultrep/faultrep.c b/dlls/faultrep/faultrep.c
new file mode 100644
index 0000000..4e715c9
--- /dev/null
+++ b/dlls/faultrep/faultrep.c
@@ -0,0 +1,37 @@
+/* Fault report handling 
+ *
+ * Copyright 2007 Peter Dons Tychsen 
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(faultrep);
+
+/***********************************************************************
+ * DllMain.
+ */
+BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
+{
+    switch(reason)
+    {
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(inst);
+        break;
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/faultrep/faultrep.spec b/dlls/faultrep/faultrep.spec
new file mode 100644
index 0000000..436fc17
--- /dev/null
+++ b/dlls/faultrep/faultrep.spec
@@ -0,0 +1 @@
+# faultlib dll. For now the DLL is empty
-- 
1.5.2.2

