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
9f2ad566
Commit
9f2ad566
authored
26 years ago
by
Eric Pouech
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed return codes for default driver proc.
parent
613092a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
windows/driver.c
+17
-11
17 additions, 11 deletions
windows/driver.c
with
17 additions
and
11 deletions
windows/driver.c
+
17
−
11
View file @
9f2ad566
...
...
@@ -920,17 +920,23 @@ LRESULT WINAPI DefDriverProc16(DWORD dwDevID, HDRVR16 hDriv, UINT16 wMsg,
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
)
1L
;
case
DRV_DISABLE
:
return
(
LRESULT
)
1L
;
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
;
case
DRV_REMOVE
:
return
(
LRESULT
)
DRVCNF_RESTART
;
default:
return
(
LRESULT
)
0L
;
case
DRV_LOAD
:
case
DRV_FREE
:
case
DRV_ENABLE
:
case
DRV_DISABLE
:
return
(
LRESULT
)
1L
;
case
DRV_OPEN
:
case
DRV_CLOSE
:
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
:
case
DRV_REMOVE
:
return
DRV_SUCCESS
;
default:
return
(
LRESULT
)
0L
;
}
}
...
...
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