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
5e4f0cf5
Commit
5e4f0cf5
authored
Aug 12, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Return the dll flag in MODULE_GetBinaryType for 16-bit modules too.
parent
f274d1d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
module.c
dlls/kernel32/module.c
+7
-6
No files found.
dlls/kernel32/module.c
View file @
5e4f0cf5
...
...
@@ -325,15 +325,16 @@ DWORD MODULE_GetBinaryType( HANDLE hfile, void **res_start, void **res_end )
*/
if
(
len
>=
sizeof
(
ext_header
.
os2
))
{
DWORD
flags
=
(
ext_header
.
os2
.
ne_flags
&
NE_FFLAGS_LIBMODULE
)
?
BINARY_FLAG_DLL
:
0
;
switch
(
ext_header
.
os2
.
ne_exetyp
)
{
case
1
:
return
BINARY_OS216
;
/* OS/2 */
case
2
:
return
BINARY_WIN16
;
/* Windows */
case
3
:
return
BINARY_DOS
;
/* European MS-DOS 4.x */
case
4
:
return
BINARY_WIN16
;
/* Windows 386; FIXME: is this 32bit??? */
case
5
:
return
BINARY_DOS
;
/* BOSS, Borland Operating System Services */
case
1
:
return
flags
|
BINARY_OS216
;
/* OS/2 */
case
2
:
return
flags
|
BINARY_WIN16
;
/* Windows */
case
3
:
return
flags
|
BINARY_DOS
;
/* European MS-DOS 4.x */
case
4
:
return
flags
|
BINARY_WIN16
;
/* Windows 386; FIXME: is this 32bit??? */
case
5
:
return
flags
|
BINARY_DOS
;
/* BOSS, Borland Operating System Services */
/* other types, e.g. 0 is: "unknown" */
default:
return
MODULE_Decide_OS2_OldWin
(
hfile
,
&
header
.
mz
,
&
ext_header
.
os2
);
default:
return
flags
|
MODULE_Decide_OS2_OldWin
(
hfile
,
&
header
.
mz
,
&
ext_header
.
os2
);
}
}
/* Couldn't read header, so abort. */
...
...
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