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
Releases
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
Johnny Cai
wine
Commits
c9ed21f7
Commit
c9ed21f7
authored
26 years ago
by
Eric Pouech
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes some return values for DefDriverProc.
parent
0cfb2f9a
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
windows/driver.c
+6
-3
6 additions, 3 deletions
windows/driver.c
with
6 additions
and
3 deletions
windows/driver.c
+
6
−
3
View file @
c9ed21f7
...
...
@@ -577,7 +577,7 @@ static BOOL DRIVER_AddToList(LPWINE_DRIVER lpNewDrv, LPARAM lParam, BOOL bCallFr
lpNewDrv
->
dwMagic
=
WINE_DI_MAGIC
;
/* First driver to be loaded for this module, need to load correctly the module */
if
(
DRIVER_GetNumberOfModuleRefs
(
lpNewDrv
)
==
0
)
{
if
(
SendDriverMessage
((
HDRVR
)
lpNewDrv
,
DRV_LOAD
,
0L
,
0L
)
!=
DRV_SUCCESS
)
{
if
(
SendDriverMessage
((
HDRVR
)
lpNewDrv
,
DRV_LOAD
,
0L
,
0L
)
!=
DRV_SUCCESS
)
{
TRACE
(
driver
,
"DRV_LOAD failed on driver 0x%08lx
\n
"
,
(
DWORD
)
lpNewDrv
);
return
FALSE
;
}
...
...
@@ -916,13 +916,16 @@ HMODULE WINAPI GetDriverModuleHandle(HDRVR hDrvr)
LRESULT
WINAPI
DefDriverProc16
(
DWORD
dwDevID
,
HDRVR16
hDriv
,
UINT16
wMsg
,
LPARAM
lParam1
,
LPARAM
lParam2
)
{
TRACE
(
driver
,
"devID=0x%08lx hDrv=0x%04x wMsg=%04x lP1=0x%08lx lP2=0x%08lx
\n
"
,
dwDevID
,
hDriv
,
wMsg
,
lParam1
,
lParam2
);
switch
(
wMsg
)
{
case
DRV_LOAD
:
return
(
LRESULT
)
0L
;
case
DRV_FREE
:
return
(
LRESULT
)
0L
;
case
DRV_OPEN
:
return
(
LRESULT
)
0L
;
case
DRV_CLOSE
:
return
(
LRESULT
)
0L
;
case
DRV_ENABLE
:
return
(
LRESULT
)
0
L
;
case
DRV_DISABLE
:
return
(
LRESULT
)
0
L
;
case
DRV_ENABLE
:
return
(
LRESULT
)
1
L
;
case
DRV_DISABLE
:
return
(
LRESULT
)
1
L
;
case
DRV_QUERYCONFIGURE
:
return
(
LRESULT
)
0L
;
case
DRV_CONFIGURE
:
MessageBoxA
(
0
,
"Driver isn't configurable !"
,
"Wine Driver"
,
MB_OK
);
return
(
LRESULT
)
0L
;
case
DRV_INSTALL
:
return
(
LRESULT
)
DRVCNF_RESTART
;
...
...
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