Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a8b007da
Commit
a8b007da
authored
Aug 30, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Fix error value for PE files without resource.
Avoids spurious "dll is missing" messages from winetest.
parent
f143af50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
version.c
dlls/kernelbase/version.c
+4
-6
No files found.
dlls/kernelbase/version.c
View file @
a8b007da
...
...
@@ -775,7 +775,7 @@ DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD r
if
(
flags
&
~
FILE_VER_GET_LOCALISED
)
FIXME
(
"flags 0x%lx ignored
\n
"
,
flags
&
~
FILE_VER_GET_LOCALISED
);
if
((
hModule
=
LoadLibraryExW
(
filename
,
0
,
LOAD_LIBRARY_AS_
DATAFIL
E
)))
if
((
hModule
=
LoadLibraryExW
(
filename
,
0
,
LOAD_LIBRARY_AS_
IMAGE_RESOURC
E
)))
{
HRSRC
hRsrc
=
NULL
;
if
(
!
(
flags
&
FILE_VER_GET_LOCALISED
))
...
...
@@ -794,8 +794,7 @@ DWORD WINAPI GetFileVersionInfoSizeExW( DWORD flags, LPCWSTR filename, LPDWORD r
}
FreeLibrary
(
hModule
);
}
if
(
magic
==
1
)
else
{
HANDLE
handle
=
CreateFileW
(
filename
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
...
...
@@ -881,7 +880,7 @@ BOOL WINAPI GetFileVersionInfoExW( DWORD flags, LPCWSTR filename, DWORD ignored,
if
(
flags
&
~
FILE_VER_GET_LOCALISED
)
FIXME
(
"flags 0x%lx ignored
\n
"
,
flags
&
~
FILE_VER_GET_LOCALISED
);
if
((
hModule
=
LoadLibraryExW
(
filename
,
0
,
LOAD_LIBRARY_AS_
DATAFIL
E
)))
if
((
hModule
=
LoadLibraryExW
(
filename
,
0
,
LOAD_LIBRARY_AS_
IMAGE_RESOURC
E
)))
{
HRSRC
hRsrc
=
NULL
;
if
(
!
(
flags
&
FILE_VER_GET_LOCALISED
))
...
...
@@ -903,8 +902,7 @@ BOOL WINAPI GetFileVersionInfoExW( DWORD flags, LPCWSTR filename, DWORD ignored,
}
FreeLibrary
(
hModule
);
}
if
(
magic
==
1
)
else
{
HANDLE
handle
=
CreateFileW
(
filename
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
...
...
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