Commit in reactos/lib/cabinet on MAIN
winehq2ros.patch[empty]added 1.1
cabextract.c+5-131.1 -> 1.2
cabinet.h+5-51.1 -> 1.2
+10-18
1 added + 2 modified, total 3 files
Sync to Wine-20040309

reactos/lib/cabinet
cabextract.c 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- cabextract.c	14 Jan 2004 01:47:46 -0000	1.1
+++ cabextract.c	11 Mar 2004 20:08:15 -0000	1.2
@@ -42,14 +42,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
 
-/* ReactOS Hack */
-extern inline DWORD WINAPI GetLastError(void)
-{
-    DWORD ret;
-    __asm__ __volatile__( ".byte 0x64\n\tmovl 0x34,%0" : "=r" (ret) );
-    return ret;
-}
-
 THOSE_ZIP_CONSTS;
 
 /* all the file IO is abstracted into these routines:
@@ -74,7 +66,7 @@
   /* seek to end of file and get the length */
   if ((cab->filelen = SetFilePointer(fh, 0, NULL, FILE_END)) == INVALID_SET_FILE_POINTER) {
     if (GetLastError() != NO_ERROR) {
-      ERR("Seek END failed: %s", debugstr_a(name));
+      ERR("Seek END failed: %s\n", debugstr_a(name));
       CloseHandle(fh);
       return FALSE;
     }
@@ -82,7 +74,7 @@
 
   /* return to the start of the file */
   if (SetFilePointer(fh, 0, NULL, FILE_BEGIN) == INVALID_SET_FILE_POINTER) {
-    ERR("Seek BEGIN failed: %s", debugstr_a(name));
+    ERR("Seek BEGIN failed: %s\n", debugstr_a(name));
     CloseHandle(fh);
     return FALSE;
   }
@@ -228,7 +220,7 @@
       fi->fh = 0;
     }
   } else 
-    ERR("Couldn't ensure filepath for %s", debugstr_a(name));
+    ERR("Couldn't ensure filepath for %s\n", debugstr_a(name));
 
   if (!ok) {
     ERR("Couldn't open file %s for writing\n", debugstr_a(name));
@@ -287,7 +279,7 @@
   TRACE("(cab == ^%p, distance == %u)\n", cab, distance);
   if (SetFilePointer(cab->fh, distance, NULL, FILE_CURRENT) == INVALID_SET_FILE_POINTER) {
     if (distance != INVALID_SET_FILE_POINTER)
-      ERR("%s", debugstr_a((char *) cab->filename));
+      ERR("%s\n", debugstr_a((char *) cab->filename));
   }
 }
 
@@ -2099,7 +2091,7 @@
     }
 
     do {
-      TRACE("trying cab == %s", debugstr_a(cab));
+      TRACE("trying cab == %s\n", debugstr_a(cab));
 
       /* we don't want null cabinet filenames */
       if (name[0] == '\0') {

reactos/lib/cabinet
cabinet.h 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- cabinet.h	14 Jan 2004 01:47:46 -0000	1.1
+++ cabinet.h	11 Mar 2004 20:08:15 -0000	1.2
@@ -36,12 +36,12 @@
 
 #define CAB_SEARCH_SIZE (32*1024)
 
-typedef unsigned char  cab_UBYTE; /* 8 bits  */
-typedef unsigned short cab_UWORD; /* 16 bits */
-typedef unsigned int   cab_ULONG; /* 32 bits */
-typedef signed int     cab_LONG;  /* 32 bits */
+typedef unsigned char cab_UBYTE; /* 8 bits  */
+typedef UINT16        cab_UWORD; /* 16 bits */
+typedef UINT32        cab_ULONG; /* 32 bits */
+typedef INT32         cab_LONG;  /* 32 bits */
 
-typedef unsigned int   cab_off_t;
+typedef UINT32        cab_off_t;
 
 /* number of bits in a ULONG */
 #ifndef CHAR_BIT
CVSspam 0.2.8