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
bc553a09
Commit
bc553a09
authored
Mar 13, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ifsmgr.vxd: Load winedos dynamically.
parent
75be87dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
Makefile.in
dlls/ifsmgr.vxd/Makefile.in
+1
-1
ifsmgr.c
dlls/ifsmgr.vxd/ifsmgr.c
+22
-4
No files found.
dlls/ifsmgr.vxd/Makefile.in
View file @
bc553a09
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
ifsmgr.vxd
IMPORTS
=
winedos
kernel32
IMPORTS
=
kernel32
C_SRCS
=
\
ifsmgr.c
...
...
dlls/ifsmgr.vxd/ifsmgr.c
View file @
bc553a09
...
...
@@ -36,8 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
vxd
);
extern
void
WINAPI
CallBuiltinHandler
(
CONTEXT86
*
context
,
BYTE
intnum
);
/* from winedos */
/*
* IFSMgr DeviceIO service
*/
...
...
@@ -99,6 +97,23 @@ static void CONTEXT_2_win32apieq(const CONTEXT86 *pCxt, struct win32apireq *pOut
/* FIXME: pOut->ar_pad ignored */
}
typedef
void
(
WINAPI
*
CallBuiltinHandler
)(
CONTEXT
*
context
,
BYTE
intnum
);
static
CallBuiltinHandler
load_builtin_handler
(
void
)
{
static
CallBuiltinHandler
handler
;
static
BOOL
init_done
;
if
(
!
init_done
)
{
HMODULE
mod
=
LoadLibraryA
(
"winedos.dll"
);
if
(
mod
)
handler
=
(
void
*
)
GetProcAddress
(
mod
,
"CallBuiltinHandler"
);
if
(
!
handler
)
FIXME
(
"DOS calls not supported
\n
"
);
init_done
=
TRUE
;
}
return
handler
;
}
/***********************************************************************
* DeviceIoControl (IFSMGR.VXD.@)
*/
...
...
@@ -119,6 +134,9 @@ BOOL WINAPI IFSMGR_DeviceIoControl(DWORD dwIoControlCode, LPVOID lpvInBuffer, DW
CONTEXT86
cxt
;
struct
win32apireq
*
pIn
=
lpvInBuffer
;
struct
win32apireq
*
pOut
=
lpvOutBuffer
;
CallBuiltinHandler
handler
;
if
(
!
(
handler
=
load_builtin_handler
()))
return
FALSE
;
TRACE
(
"Control '%s': "
"proid=0x%08lx, eax=0x%08lx, ebx=0x%08lx, ecx=0x%08lx, "
...
...
@@ -132,9 +150,9 @@ BOOL WINAPI IFSMGR_DeviceIoControl(DWORD dwIoControlCode, LPVOID lpvInBuffer, DW
win32apieq_2_CONTEXT
(
pIn
,
&
cxt
);
if
(
dwIoControlCode
==
IFS_IOCTL_21
)
CallBuiltinH
andler
(
&
cxt
,
0x21
);
h
andler
(
&
cxt
,
0x21
);
else
CallBuiltinH
andler
(
&
cxt
,
0x2f
);
h
andler
(
&
cxt
,
0x2f
);
CONTEXT_2_win32apieq
(
&
cxt
,
pOut
);
return
TRUE
;
...
...
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