[CABINET_WINETEST] Sync with Wine Staging 4.18. CORE-16441
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Oct 2019 21:50:44 +0000 (22:50 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Oct 2019 21:50:44 +0000 (22:50 +0100)
modules/rostests/winetests/cabinet/fdi.c

index 80f6a3c..732f816 100644 (file)
@@ -20,6 +20,8 @@
  */
 
 #include <stdio.h>
+#include <fcntl.h>
+#include <sys/stat.h>
 #include <windows.h>
 #include "fci.h"
 #include "fdi.h"
 
 static CHAR CURR_DIR[MAX_PATH];
 
-/* avoid including CRT headers */
-#ifndef _O_BINARY
-# define _O_BINARY 0x8000
-#endif
-
-#ifndef _S_IREAD
-# define _S_IREAD  0x0100
-# define _S_IWRITE 0x0080
-#endif
-
 #include <pshpack1.h>
 
 struct CFHEADER
@@ -784,7 +776,7 @@ static UINT CDECL fdi_mem_read(INT_PTR hf, void *pv, UINT cb)
 
 static UINT CDECL fdi_mem_write(INT_PTR hf, void *pv, UINT cb)
 {
-    static const char expected[12] = "Hello World!";
+    static const char expected[] = "Hello World!";
 
     trace("mem_write(%#lx,%p,%u)\n", hf, pv, cb);