[QMGR] Sync with Wine Staging 3.3. CORE-14434
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 21 Mar 2018 12:12:06 +0000 (13:12 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 21 Mar 2018 12:12:06 +0000 (13:12 +0100)
12 files changed:
dll/win32/qmgr/CMakeLists.txt
dll/win32/qmgr/enum_files.c
dll/win32/qmgr/enum_jobs.c
dll/win32/qmgr/factory.c
dll/win32/qmgr/file.c
dll/win32/qmgr/job.c
dll/win32/qmgr/precomp.h [new file with mode: 0644]
dll/win32/qmgr/qmgr.c
dll/win32/qmgr/qmgr.h
dll/win32/qmgr/qmgr_main.c
dll/win32/qmgr/service.c
media/doc/README.WINE

index c503cf5..21fec58 100644 (file)
@@ -13,7 +13,7 @@ list(APPEND SOURCE
     qmgr.c
     qmgr_main.c
     service.c
     qmgr.c
     qmgr_main.c
     service.c
-    qmgr.h
+    precomp.h
     ${CMAKE_CURRENT_BINARY_DIR}/qmgr_local_i.c)
 
 add_library(qmgr SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/qmgr_local_i.c)
 
 add_library(qmgr SHARED
@@ -26,6 +26,6 @@ add_idl_headers(qmgr_idlheader qmgr_local.idl)
 set_module_type(qmgr win32dll)
 target_link_libraries(qmgr uuid wine)
 add_importlibs(qmgr winhttp ole32 advapi32 msvcrt kernel32 ntdll)
 set_module_type(qmgr win32dll)
 target_link_libraries(qmgr uuid wine)
 add_importlibs(qmgr winhttp ole32 advapi32 msvcrt kernel32 ntdll)
-add_pch(qmgr qmgr.h SOURCE)
+add_pch(qmgr precomp.h SOURCE)
 add_cd_file(TARGET qmgr DESTINATION reactos/system32 FOR all)
 add_dependencies(qmgr qmgr_idlheader)
 add_cd_file(TARGET qmgr DESTINATION reactos/system32 FOR all)
 add_dependencies(qmgr qmgr_idlheader)
index 8945370..67953d9 100644 (file)
@@ -19,6 +19,9 @@
  */
 
 #include "qmgr.h"
  */
 
 #include "qmgr.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 typedef struct
 {
 
 typedef struct
 {
index c942547..7fae597 100644 (file)
@@ -19,6 +19,9 @@
  */
 
 #include "qmgr.h"
  */
 
 #include "qmgr.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 typedef struct
 {
 
 typedef struct
 {
index 69e6d98..9736e00 100644 (file)
@@ -19,6 +19,9 @@
  */
 
 #include "qmgr.h"
  */
 
 #include "qmgr.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 static ULONG WINAPI
 BITS_IClassFactory_AddRef(IClassFactory *iface)
 
 static ULONG WINAPI
 BITS_IClassFactory_AddRef(IClassFactory *iface)
index 1915464..3673ede 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "winreg.h"
+#include "winhttp.h"
+#define COBJMACROS
 #include "qmgr.h"
 #include "qmgr.h"
+#include "wine/debug.h"
 
 
-#include <urlmon.h>
-#include <winhttp.h>
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 static inline BackgroundCopyFileImpl *impl_from_IBackgroundCopyFile2(
     IBackgroundCopyFile2 *iface)
 
 static inline BackgroundCopyFileImpl *impl_from_IBackgroundCopyFile2(
     IBackgroundCopyFile2 *iface)
index 8843bfa..a12e511 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
 #include "qmgr.h"
 #include "qmgr.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 BOOL transitionJobState(BackgroundCopyJobImpl *job, BG_JOB_STATE from, BG_JOB_STATE to)
 {
 
 BOOL transitionJobState(BackgroundCopyJobImpl *job, BG_JOB_STATE from, BG_JOB_STATE to)
 {
diff --git a/dll/win32/qmgr/precomp.h b/dll/win32/qmgr/precomp.h
new file mode 100644 (file)
index 0000000..ee8a716
--- /dev/null
@@ -0,0 +1,22 @@
+
+#ifndef _QMGR_PRECOMP_H_
+#define _QMGR_PRECOMP_H_
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+
+#include <windef.h>
+#include <winbase.h>
+#include <winsvc.h>
+#include <objbase.h>
+
+#include <wine/debug.h>
+
+#include "qmgr.h"
+
+#endif /* !_QMGR_PRECOMP_H_ */
index f0c8462..110b87b 100644 (file)
@@ -19,6 +19,9 @@
  */
 
 #include "qmgr.h"
  */
 
 #include "qmgr.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 BackgroundCopyManagerImpl globalMgr;
 
 
 BackgroundCopyManagerImpl globalMgr;
 
index 4615e13..2bc5b8b 100644 (file)
 #ifndef __QMGR_H__
 #define __QMGR_H__
 
 #ifndef __QMGR_H__
 #define __QMGR_H__
 
-#include <stdarg.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
+#include "windef.h"
 #define COBJMACROS
 #define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-#include <winsvc.h>
-#include <objbase.h>
-#include <bits1_5.h>
-#include <bits2_0.h>
-#include <bits2_5.h>
-#include <bits3_0.h>
-
-#include <wine/list.h>
-#include <wine/debug.h>
-#include <wine/unicode.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
+#include "bits.h"
+#include "bits1_5.h"
+#include "bits2_0.h"
+#include "bits2_5.h"
+#include "bits3_0.h"
+
+#include <string.h>
+#include "wine/list.h"
+#include "wine/unicode.h"
 
 /* Background copy job vtbl and related data */
 typedef struct
 
 /* Background copy job vtbl and related data */
 typedef struct
index 7576e4a..7bea214 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include <stdio.h>
+
+#define COBJMACROS
+#include "objbase.h"
+#include "winuser.h"
+#include "winreg.h"
+#include "advpub.h"
+#include "olectl.h"
+#include "rpcproxy.h"
+#include "winsvc.h"
 #include "qmgr.h"
 
 #include "qmgr.h"
 
-#include <stdio.h>
+#include "wine/debug.h"
 
 
-#include <winuser.h>
-#include <winreg.h>
-#include <advpub.h>
-#include <olectl.h>
-#include <rpcproxy.h>
-#include <initguid.h>
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 /* Handle to the base address of this DLL */
 static HINSTANCE hInst;
 
 /* Handle to the base address of this DLL */
 static HINSTANCE hInst;
index 43fc091..e856408 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include "windef.h"
+#include "winsvc.h"
 #include "qmgr.h"
 #include "qmgr.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
 
 HANDLE stop_event = NULL;
 
 
 HANDLE stop_event = NULL;
 
index 32a7264..037d653 100644 (file)
@@ -153,7 +153,7 @@ reactos/dll/win32/powrprof            # Forked at Wine-1.0rc5
 reactos/dll/win32/printui             # Synced to WineStaging-3.3
 reactos/dll/win32/propsys             # Synced to WineStaging-3.3
 reactos/dll/win32/pstorec             # Synced to WineStaging-3.3
 reactos/dll/win32/printui             # Synced to WineStaging-3.3
 reactos/dll/win32/propsys             # Synced to WineStaging-3.3
 reactos/dll/win32/pstorec             # Synced to WineStaging-3.3
-reactos/dll/win32/qmgr                # Synced to WineStaging-2.9
+reactos/dll/win32/qmgr                # Synced to WineStaging-3.3
 reactos/dll/win32/qmgrprxy            # Synced to WineStaging-2.9
 reactos/dll/win32/query               # Synced to WineStaging-2.9
 reactos/dll/win32/rasapi32            # Synced to WineStaging-2.9
 reactos/dll/win32/qmgrprxy            # Synced to WineStaging-2.9
 reactos/dll/win32/query               # Synced to WineStaging-2.9
 reactos/dll/win32/rasapi32            # Synced to WineStaging-2.9