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
c2330178
Commit
c2330178
authored
Nov 03, 2007
by
Dan Kegel
Committed by
Alexandre Julliard
Nov 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: FCIAddFile: Set defaults in case callback doesn't set some fields.
parent
1c473f38
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
fci.c
dlls/cabinet/fci.c
+4
-0
fdi.c
dlls/cabinet/tests/fdi.c
+3
-0
No files found.
dlls/cabinet/fci.c
View file @
c2330178
...
...
@@ -2416,6 +2416,10 @@ BOOL __cdecl FCIAddFile(
}
/* get information about the file */
/* set defaults in case callback doesn't set one or more fields */
cffile
.
attribs
=
0
;
cffile
.
date
=
0
;
cffile
.
time
=
0
;
file_handle
=
(
*
pfnfcigoi
)(
pszSourceFile
,
&
(
cffile
.
date
),
&
(
cffile
.
time
),
&
(
cffile
.
attribs
),
&
err
,
p_fci_internal
->
pv
);
/* check file_handle */
...
...
dlls/cabinet/tests/fdi.c
View file @
c2330178
...
...
@@ -436,6 +436,9 @@ static INT_PTR get_open_info(char *pszName, USHORT *pdate, USHORT *ptime,
attrs
=
GetFileAttributes
(
pszName
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Failed to GetFileAttributes
\n
"
);
/* fixme: should convert attrs to *pattribs, make sure
* have a test that catches the fact that we don't?
*/
return
(
INT_PTR
)
handle
;
}
...
...
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