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
62b85633
Commit
62b85633
authored
Apr 25, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in msg conversion.
parent
38dcf8ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
driver.c
windows/driver.c
+4
-2
No files found.
windows/driver.c
View file @
62b85633
...
...
@@ -105,7 +105,7 @@ static LPWINE_DRIVER DRIVER_FindFromHDrvr16(HDRVR16 hDrvr)
*/
static
LPWINE_DRIVER
DRIVER_FindFromHDrvr
(
HDRVR
hDrvr
)
{
if
(
!
IsBadWritePtr
((
void
*
)
hDrvr
,
sizeof
(
DWORD
))
&&
if
(
!
IsBadWritePtr
((
void
*
)
hDrvr
,
sizeof
(
WINE_DRIVER
))
&&
((
LPWINE_DRIVER
)
hDrvr
)
->
dwMagic
==
WINE_DI_MAGIC
)
{
return
(
LPWINE_DRIVER
)
hDrvr
;
}
...
...
@@ -335,7 +335,7 @@ int DRIVER_MapMsg32To16(WORD wMsg, DWORD* lParam1, DWORD* lParam2)
/* lParam1 is a handle to a window (or not used), lParam2 is a pointer to DRVCONFIGINFO */
if
(
*
lParam2
)
{
LPDRVCONFIGINFO16
dci16
=
(
LPDRVCONFIGINFO16
)
SEGPTR_ALLOC
(
sizeof
(
DRVCONFIGINFO16
));
LPDRVCONFIGINFO
dci32
=
(
LPDRVCONFIGINFO
)
lParam2
;
LPDRVCONFIGINFO
dci32
=
(
LPDRVCONFIGINFO
)
(
*
lParam2
)
;
if
(
dci16
)
{
LPSTR
str1
,
str2
;
...
...
@@ -898,6 +898,7 @@ HMODULE16 WINAPI GetDriverModuleHandle16(HDRVR16 hDrvr)
(
lpDrv
->
dwFlags
&
WINE_DI_TYPE_MASK
)
==
WINE_DI_TYPE_16
)
{
hModule
=
lpDrv
->
d
.
d16
.
hModule
;
}
TRACE
(
driver
,
"=> %d
\n
"
,
hModule
);
return
hModule
;
}
...
...
@@ -924,6 +925,7 @@ HMODULE WINAPI GetDriverModuleHandle(HDRVR hDrvr)
if
(
lpDrv
!=
NULL
&&
(
lpDrv
->
dwFlags
&
WINE_DI_TYPE_MASK
)
==
WINE_DI_TYPE_32
)
{
hModule
=
lpDrv
->
d
.
d32
.
hModule
;
}
TRACE
(
driver
,
"=> %d
\n
"
,
hModule
);
return
hModule
;
}
...
...
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