* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
+#include "config.h"
-#include <config.h>
-
-//#include <assert.h>
+#include <assert.h>
#include <stdarg.h>
-//#include <string.h>
+#include <string.h>
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.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>
+#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
}
hFile = CreateFileA(szFullPath, GENERIC_READ | GENERIC_WRITE, 0, NULL,
- CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL);
+ CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
- if (hFile == INVALID_HANDLE_VALUE)
- hFile = 0;
- else if (node)
+ if (hFile != INVALID_HANDLE_VALUE && node)
node->DoExtract = FALSE;
}
HFDI hfdi;
char *str, *end, *path = NULL, *name = NULL;
- TRACE("(%p, %s)\n", dest, szCabName);
+ TRACE("(%p, %s)\n", dest, debugstr_a(szCabName));
hfdi = FDICreate(mem_alloc,
mem_free,