[ADVPACK] Sync with Wine Staging 3.3. CORE-14434
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 9 Mar 2018 11:41:26 +0000 (12:41 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 9 Mar 2018 11:41:26 +0000 (12:41 +0100)
dll/win32/advpack/CMakeLists.txt
dll/win32/advpack/advpack.c
dll/win32/advpack/advpack_private.h
dll/win32/advpack/files.c
dll/win32/advpack/install.c
dll/win32/advpack/precomp.h [new file with mode: 0644]
dll/win32/advpack/reg.c
media/doc/README.WINE

index 71abc63..5859274 100644 (file)
@@ -8,7 +8,7 @@ list(APPEND SOURCE
     files.c
     install.c
     reg.c
-    advpack_private.h)
+    precomp.h)
 
 add_library(advpack SHARED
     ${SOURCE}
@@ -18,5 +18,5 @@ add_library(advpack SHARED
 set_module_type(advpack win32dll)
 target_link_libraries(advpack wine)
 add_importlibs(advpack ole32 setupapi version advapi32 msvcrt kernel32 ntdll)
-add_pch(advpack advpack_private.h SOURCE)
+add_pch(advpack precomp.h SOURCE)
 add_cd_file(TARGET advpack DESTINATION reactos/system32 FOR all)
index 4f1b41c..d2ce60e 100644 (file)
  * 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 "winternl.h"
+#include "winnls.h"
+#include "setupapi.h"
+#include "advpub.h"
+#include "wine/unicode.h"
+#include "wine/debug.h"
 #include "advpack_private.h"
 
+WINE_DEFAULT_DEBUG_CHANNEL(advpack);
+
 typedef HRESULT (WINAPI *DLLREGISTER) (void);
 
 #define MAX_FIELD_LENGTH    512
index 5ebfe63..fc3b26f 100644 (file)
 #ifndef __ADVPACK_PRIVATE_H
 #define __ADVPACK_PRIVATE_H
 
-#include <stdarg.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <windef.h>
-#include <winbase.h>
-#include <winuser.h>
-#include <winreg.h>
-#include <winternl.h>
-#include <advpub.h>
-
-#include <wine/debug.h>
-#include <wine/unicode.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(advpack);
+#include "wine/heap.h"
 
 HRESULT do_ocx_reg(HMODULE hocx, BOOL do_reg, const WCHAR *flags, const WCHAR *param) DECLSPEC_HIDDEN;
 LPWSTR get_parameter(LPWSTR *params, WCHAR separator, BOOL quoted) DECLSPEC_HIDDEN;
@@ -45,16 +29,6 @@ void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) DECL
 
 HRESULT launch_exe(LPCWSTR cmd, LPCWSTR dir, HANDLE *phEXE) DECLSPEC_HIDDEN;
 
-static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
-{
-    return HeapAlloc(GetProcessHeap(), 0, size);
-}
-
-static inline BOOL heap_free(void *mem)
-{
-    return HeapFree(GetProcessHeap(), 0, mem);
-}
-
 static inline char *heap_strdupWtoA(const WCHAR *str)
 {
     char *ret = NULL;
index 0a5c680..c5efbb2 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include <stdarg.h>
+#include <stdlib.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "winreg.h"
+#include "winver.h"
+#include "winternl.h"
+#include "setupapi.h"
+#include "advpub.h"
+#include "fdi.h"
+#include "wine/debug.h"
+#include "wine/unicode.h"
 #include "advpack_private.h"
 
-#include <winver.h>
-#include <fdi.h>
+WINE_DEFAULT_DEBUG_CHANNEL(advpack);
 
 /* converts an ansi double null-terminated list to a unicode list */
 static LPWSTR ansi_to_unicode_list(LPCSTR ansi_list)
index a1e750a..dcd1dd7 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include <stdarg.h>
+#include <stdlib.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "winreg.h"
+#include "winternl.h"
+#include "winnls.h"
+#include "setupapi.h"
+#include "advpub.h"
+#include "ole2.h"
+#include "wine/debug.h"
+#include "wine/unicode.h"
 #include "advpack_private.h"
 
-#include <ole2.h>
+WINE_DEFAULT_DEBUG_CHANNEL(advpack);
 
 #define SPAPI_ERROR     0xE0000000L
 #define SPAPI_PREFIX    0x800F0000L
diff --git a/dll/win32/advpack/precomp.h b/dll/win32/advpack/precomp.h
new file mode 100644 (file)
index 0000000..a1c236f
--- /dev/null
@@ -0,0 +1,23 @@
+
+#ifndef _ADVPACK_PRECOMP_H
+#define _ADVPACK_PRECOMP_H
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <windef.h>
+#include <winbase.h>
+#include <winuser.h>
+#include <winreg.h>
+#include <winternl.h>
+#include <advpub.h>
+
+#include <wine/debug.h>
+#include <wine/unicode.h>
+
+#include "advpack_private.h"
+
+#endif /* !_ADVPACK_PRECOMP_H */
index 2e46799..9a43015 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "advpack_private.h"
+#include <stdarg.h>
+#include "windef.h"
+#include "winbase.h"
+#include "winreg.h"
+#include "winerror.h"
+#include "winuser.h"
+#include "winternl.h"
+#include "advpub.h"
+#include "wine/unicode.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(advpack);
 
 static const WCHAR REGINST[] = {'R','E','G','I','N','S','T',0};
 static const WCHAR Strings[] = {'S','t','r','i','n','g','s',0};
index ff96bab..e37d01d 100644 (file)
@@ -44,7 +44,7 @@ reactos/dll/directx/wine/wined3d        # Synced to WineStaging-3.3
 
 reactos/dll/win32/activeds            # Synced to WineStaging-3.3
 reactos/dll/win32/actxprxy            # Synced to WineStaging-3.3
-reactos/dll/win32/advpack             # Synced to WineStaging-2.9
+reactos/dll/win32/advpack             # Synced to WineStaging-3.3
 reactos/dll/win32/atl                 # Synced to Wine-3.0
 reactos/dll/win32/atl80               # Synced to Wine-3.0
 reactos/dll/win32/atl100              # Synced to Wine-3.0