[SPOOLSS]
[reactos.git] / reactos / dll / win32 / spoolss / spoolss_main.c
index 9f248f0..25af2e2 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#define WIN32_NO_STATUS
+
 #include <stdarg.h>
 
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "winreg.h"
+//#include "windef.h"
+//#include "winbase.h"
+//#include "winerror.h"
+//#include "winreg.h"
 
-#include "wingdi.h"
-#include "winspool.h"
-#include "ddk/winsplp.h"
+//#include "wingdi.h"
+//#include "winspool.h"
+//#include "ddk/winsplp.h"
 #include "spoolss.h"
 
-#include "wine/debug.h"
+#include <wine/debug.h>
 
 WINE_DEFAULT_DEBUG_CHANNEL(spoolss);
 
@@ -55,6 +57,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
             break;
 
         case DLL_PROCESS_DETACH:
+            if (lpvReserved) break;
             backend_unload_all();
             break;
         }