Alexandre Julliard : setupapi: Fix access rights for cabinet creation.
Alexandre Julliard
julliard at winehq.org
Wed Feb 2 12:30:16 CST 2011
Module: wine
Branch: master
Commit: fcf8e164c3772d7e10df9829c6ff622127b7f3e9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fcf8e164c3772d7e10df9829c6ff622127b7f3e9
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Feb 2 18:11:36 2011 +0100
setupapi: Fix access rights for cabinet creation.
---
dlls/setupapi/setupcab.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/setupcab.c b/dlls/setupapi/setupcab.c
index 4a54ae4..77f2b59 100644
--- a/dlls/setupapi/setupcab.c
+++ b/dlls/setupapi/setupcab.c
@@ -149,7 +149,7 @@ static INT_PTR CDECL sc_cb_open(char *pszFile, int oflag, int pmode)
ioflag |= GENERIC_WRITE;
break;
case _O_RDWR:
- ioflag |= GENERIC_READ & GENERIC_WRITE;
+ ioflag |= GENERIC_READ | GENERIC_WRITE;
break;
case _O_WRONLY | _O_RDWR: /* hmmm.. */
ERR("_O_WRONLY & _O_RDWR in oflag?\n");
More information about the wine-cvs
mailing list