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
f23bf7a4
Commit
f23bf7a4
authored
Apr 27, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Return INVALID_FILE_SIZE from get_pf_file_size if the file can't be opened.
So we can distinguish a zero-sized file from a file that doesn't exist.
parent
1ac16331
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
install.c
dlls/msi/tests/install.c
+1
-1
patch.c
dlls/msi/tests/patch.c
+1
-1
No files found.
dlls/msi/tests/install.c
View file @
f23bf7a4
...
...
@@ -7207,7 +7207,7 @@ static DWORD get_pf_file_size(LPCSTR file)
hfile
=
CreateFileA
(
path
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
hfile
==
INVALID_HANDLE_VALUE
)
return
0
;
return
INVALID_FILE_SIZE
;
size
=
GetFileSize
(
hfile
,
NULL
);
CloseHandle
(
hfile
);
...
...
dlls/msi/tests/patch.c
View file @
f23bf7a4
...
...
@@ -213,7 +213,7 @@ static DWORD get_pf_file_size( const char *filename )
file
=
CreateFileA
(
path
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
file
==
INVALID_HANDLE_VALUE
)
return
0
;
return
INVALID_FILE_SIZE
;
size
=
GetFileSize
(
file
,
NULL
);
CloseHandle
(
file
);
...
...
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