OpenFile mode OF_CREATE needs OF_WRITE

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sat May 1 12:32:54 CDT 2004


Changelog:
	wine/dlls/version/install.c: VerInstallFileA
	OpenFile mode OF_CREATE needs OF_WRITE for write access

This lets the Installer for the Cypress installer "gpif_designer..."
start ikernel.

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/version/install.c
===================================================================
RCS file: /home/wine/wine/dlls/version/install.c,v
retrieving revision 1.23
diff -u -r1.23 install.c
--- wine/dlls/version/install.c	16 Oct 2003 19:12:49 -0000	1.23
+++ wine/dlls/version/install.c	1 May 2004 17:26:52 -0000
@@ -409,7 +409,7 @@
 	    tmplast = s-tmpfn;
 	else
 	    tmplast = 0;
-	hfdst = OpenFile(tmpfn,&ofs,OF_CREATE);
+	hfdst = OpenFile(tmpfn,&ofs,OF_CREATE|OF_WRITE);
 	if (hfdst == HFILE_ERROR) {
 	    LZClose(hfsrc);
 	    return VIF_CANNOTCREATE; /* | translated dos error */



More information about the wine-patches mailing list