mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +00:00
[ADVPACK] Sync with Wine Staging 3.3. CORE-14434
This commit is contained in:
parent
feea1bc5be
commit
89236be2cc
8 changed files with 83 additions and 34 deletions
|
@ -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)
|
||||
|
|
|
@ -19,8 +19,22 @@
|
|||
* 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
|
||||
|
|
|
@ -21,23 +21,7 @@
|
|||
#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;
|
||||
|
|
|
@ -18,10 +18,23 @@
|
|||
* 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)
|
||||
|
|
|
@ -18,9 +18,23 @@
|
|||
* 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
|
||||
|
|
23
dll/win32/advpack/precomp.h
Normal file
23
dll/win32/advpack/precomp.h
Normal file
|
@ -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 */
|
|
@ -18,7 +18,18 @@
|
|||
* 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};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue