[CABINET] Sync with Wine Staging 3.3. CORE-14434
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 9 Mar 2018 11:48:26 +0000 (12:48 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 9 Mar 2018 11:48:26 +0000 (12:48 +0100)
dll/win32/cabinet/CMakeLists.txt
dll/win32/cabinet/cabinet.h
dll/win32/cabinet/cabinet_main.c
dll/win32/cabinet/fci.c
dll/win32/cabinet/fdi.c
dll/win32/cabinet/precomp.h [new file with mode: 0644]
media/doc/README.WINE

index c812df3..20eb368 100644 (file)
@@ -13,7 +13,7 @@ list(APPEND SOURCE
     cabinet_main.c
     fci.c
     fdi.c
-    cabinet.h)
+    precomp.h)
 
 add_library(cabinet SHARED
     ${SOURCE}
@@ -24,5 +24,5 @@ add_library(cabinet SHARED
 set_module_type(cabinet win32dll)
 target_link_libraries(cabinet wine zlib)
 add_importlibs(cabinet msvcrt kernel32 ntdll)
-add_pch(cabinet cabinet.h SOURCE)
+add_pch(cabinet precomp.h SOURCE)
 add_cd_file(TARGET cabinet DESTINATION reactos/system32 FOR all)
index 4bc4be7..52736db 100644 (file)
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
-
 #ifndef __WINE_CABINET_H
 #define __WINE_CABINET_H
 
-#include <wine/config.h>
-
 #include <stdarg.h>
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <windef.h>
-#include <winbase.h>
-#include <fdi.h>
-
-#include <wine/debug.h>
-WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
+#include "windef.h"
+#include "winbase.h"
+#include "winnt.h"
+#include "fdi.h"
+#include "fci.h"
 
 /* from msvcrt/sys/stat.h */
 #define _S_IWRITE 0x0080
index a329e4d..8af0fb1 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "cabinet.h"
+#include "config.h"
+
+#include <assert.h>
+#include <stdarg.h>
+#include <string.h>
 
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
 #define NO_SHLWAPI_REG
-#include <shlwapi.h>
+#include "shlwapi.h"
 #undef NO_SHLWAPI_REG
 
+#include "cabinet.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
+
+
 /***********************************************************************
  * DllGetVersion (CABINET.2)
  *
index 9930f08..167ca74 100644 (file)
@@ -30,16 +30,28 @@ There is still some work to be done:
 
 */
 
-#include "cabinet.h"
 
-#include <assert.h>
-#include <fci.h>
 
+#include "config.h"
+
+#include <assert.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <string.h>
 #ifdef HAVE_ZLIB
 # include <zlib.h>
 #endif
 
-#include <wine/list.h>
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+#include "wine/winternl.h"
+#include "fci.h"
+#include "cabinet.h"
+#include "wine/list.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
 
 #ifdef WORDS_BIGENDIAN
 #define fci_endian_ulong(x) RtlUlongByteSwap(x)
index a864bd7..01a0c4d 100644 (file)
  *   -gmt
  */
 
-#include "cabinet.h"
+#include "config.h"
 
+#include <stdarg.h>
 #include <stdio.h>
 
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+#include "fdi.h"
+#include "cabinet.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
+
 THOSE_ZIP_CONSTS;
 
 struct fdi_file {
diff --git a/dll/win32/cabinet/precomp.h b/dll/win32/cabinet/precomp.h
new file mode 100644 (file)
index 0000000..c2aa4fd
--- /dev/null
@@ -0,0 +1,15 @@
+
+#ifndef _WINE_CABINET_PRECOMP_H
+#define _WINE_CABINET_PRECOMP_H
+
+#include <wine/config.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include "cabinet.h"
+
+#include <wine/debug.h>
+
+#endif /* !_WINE_CABINET_PRECOMP_H */
index 5d569bf..3cbd73c 100644 (file)
@@ -51,7 +51,7 @@ reactos/dll/win32/atl100              # Synced to WineStaging-3.3
 reactos/dll/win32/avifil32            # Synced to WineStaging-3.3
 reactos/dll/win32/bcrypt              # Synced to WineStaging-1.9.23
 reactos/dll/win32/browseui            # Out of sync
-reactos/dll/win32/cabinet             # Synced to Wine-3.0
+reactos/dll/win32/cabinet             # Synced to WineStaging-3.3
 reactos/dll/win32/clusapi             # Synced to WineStaging-2.9
 reactos/dll/win32/comcat              # Synced to WineStaging-2.9
 reactos/dll/win32/comctl32            # Synced to Wine-3.0