Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
bc553a09
Commit
bc553a09
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
ifsmgr.vxd: Load winedos dynamically.
parent
75be87dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/ifsmgr.vxd/Makefile.in
+1
-1
1 addition, 1 deletion
dlls/ifsmgr.vxd/Makefile.in
dlls/ifsmgr.vxd/ifsmgr.c
+22
-4
22 additions, 4 deletions
dlls/ifsmgr.vxd/ifsmgr.c
with
23 additions
and
5 deletions
dlls/ifsmgr.vxd/Makefile.in
+
1
−
1
View file @
bc553a09
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
ifsmgr.vxd
IMPORTS
=
winedos
kernel32
IMPORTS
=
kernel32
C_SRCS
=
\
ifsmgr.c
...
...
This diff is collapsed.
Click to expand it.
dlls/ifsmgr.vxd/ifsmgr.c
+
22
−
4
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment