Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d5ff7282
Commit
d5ff7282
authored
Aug 22, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Use the proper fcntl defines in the FDI_OPEN calls.
parent
75e9ae7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
cabinet.h
dlls/cabinet/cabinet.h
+17
-0
cabinet_main.c
dlls/cabinet/cabinet_main.c
+0
-7
fdi.c
dlls/cabinet/fdi.c
+2
-2
No files found.
dlls/cabinet/cabinet.h
View file @
d5ff7282
...
...
@@ -33,6 +33,23 @@
#define _S_IWRITE 0x0080
#define _S_IREAD 0x0100
/* from msvcrt/fcntl.h */
#define _O_RDONLY 0
#define _O_WRONLY 1
#define _O_RDWR 2
#define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
#define _O_APPEND 0x0008
#define _O_RANDOM 0x0010
#define _O_SEQUENTIAL 0x0020
#define _O_TEMPORARY 0x0040
#define _O_NOINHERIT 0x0080
#define _O_CREAT 0x0100
#define _O_TRUNC 0x0200
#define _O_EXCL 0x0400
#define _O_SHORT_LIVED 0x1000
#define _O_TEXT 0x4000
#define _O_BINARY 0x8000
#define CAB_SPLITMAX (10)
#define CAB_SEARCH_SIZE (32*1024)
...
...
dlls/cabinet/cabinet_main.c
View file @
d5ff7282
...
...
@@ -37,13 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
cabinet
);
/* the following defintions are copied from msvcrt/fcntl.h */
#define _O_RDONLY 0
#define _O_WRONLY 1
#define _O_RDWR 2
#define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
/***********************************************************************
* DllGetVersion (CABINET.2)
...
...
dlls/cabinet/fdi.c
View file @
d5ff7282
...
...
@@ -2128,7 +2128,7 @@ static int fdi_decomp(const struct fdi_file *fi, int savemode, fdi_decomp_state
TRACE
(
"full cab path/file name: %s
\n
"
,
debugstr_a
(
fullpath
));
/* try to get a handle to the cabfile */
cabhf
=
PFDI_OPEN
(
CAB
(
hfdi
),
fullpath
,
32768
,
_S_IREAD
|
_S_IWRITE
);
cabhf
=
PFDI_OPEN
(
CAB
(
hfdi
),
fullpath
,
_O_RDONLY
|
_O_BINARY
,
_S_IREAD
|
_S_IWRITE
);
if
(
cabhf
==
-
1
)
{
/* no file. allow the user to try again */
fdin
.
fdie
=
FDIERROR_CABINET_NOT_FOUND
;
...
...
@@ -2492,7 +2492,7 @@ BOOL __cdecl FDICopy(
TRACE
(
"full cab path/file name: %s
\n
"
,
debugstr_a
(
fullpath
));
/* get a handle to the cabfile */
cabhf
=
PFDI_OPEN
(
hfdi
,
fullpath
,
32768
,
_S_IREAD
|
_S_IWRITE
);
cabhf
=
PFDI_OPEN
(
hfdi
,
fullpath
,
_O_RDONLY
|
_O_BINARY
,
_S_IREAD
|
_S_IWRITE
);
if
(
cabhf
==
-
1
)
{
PFDI_INT
(
hfdi
)
->
perf
->
erfOper
=
FDIERROR_CABINET_NOT_FOUND
;
PFDI_INT
(
hfdi
)
->
perf
->
erfType
=
ERROR_FILE_NOT_FOUND
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment