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
c583b685
Commit
c583b685
authored
Jan 05, 2001
by
François Gouget
Committed by
Alexandre Julliard
Jan 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We must cast the return value of GetProcAddress.
parent
9a36a2f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
driver.c
dlls/winmm/driver.c
+1
-1
vga.c
msdos/vga.c
+3
-2
No files found.
dlls/winmm/driver.c
View file @
c583b685
...
@@ -341,7 +341,7 @@ LPWINE_DRIVER DRIVER_TryOpenDriver32(LPCSTR fn, LPARAM lParam2)
...
@@ -341,7 +341,7 @@ LPWINE_DRIVER DRIVER_TryOpenDriver32(LPCSTR fn, LPARAM lParam2)
if
((
hModule
=
LoadLibraryA
(
fn
))
==
0
)
{
cause
=
"Not a 32 bit lib"
;
goto
exit
;}
if
((
hModule
=
LoadLibraryA
(
fn
))
==
0
)
{
cause
=
"Not a 32 bit lib"
;
goto
exit
;}
lpDrv
->
d
.
d32
.
lpDrvProc
=
GetProcAddress
(
hModule
,
"DriverProc"
);
lpDrv
->
d
.
d32
.
lpDrvProc
=
(
DRIVERPROC
)
GetProcAddress
(
hModule
,
"DriverProc"
);
if
(
lpDrv
->
d
.
d32
.
lpDrvProc
==
NULL
)
{
cause
=
"no DriverProc"
;
goto
exit
;}
if
(
lpDrv
->
d
.
d32
.
lpDrvProc
==
NULL
)
{
cause
=
"no DriverProc"
;
goto
exit
;}
lpDrv
->
dwFlags
=
0
;
lpDrv
->
dwFlags
=
0
;
...
...
msdos/vga.c
View file @
c583b685
...
@@ -23,7 +23,8 @@ static DDSURFACEDESC sdesc;
...
@@ -23,7 +23,8 @@ static DDSURFACEDESC sdesc;
static
LONG
vga_polling
,
vga_refresh
;
static
LONG
vga_polling
,
vga_refresh
;
static
HANDLE
poll_timer
;
static
HANDLE
poll_timer
;
static
HRESULT
WINAPI
(
*
pDirectDrawCreate
)(
LPGUID
,
LPDIRECTDRAW
*
,
LPUNKNOWN
);
typedef
HRESULT
WINAPI
(
*
DirectDrawCreateProc
)(
LPGUID
,
LPDIRECTDRAW
*
,
LPUNKNOWN
);
static
DirectDrawCreateProc
pDirectDrawCreate
;
static
void
VGA_DeinstallTimer
(
void
)
static
void
VGA_DeinstallTimer
(
void
)
{
{
...
@@ -61,7 +62,7 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth)
...
@@ -61,7 +62,7 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth)
if
(
!
pDirectDrawCreate
)
if
(
!
pDirectDrawCreate
)
{
{
HMODULE
hmod
=
LoadLibraryA
(
"ddraw.dll"
);
HMODULE
hmod
=
LoadLibraryA
(
"ddraw.dll"
);
if
(
hmod
)
pDirectDrawCreate
=
GetProcAddress
(
hmod
,
"DirectDrawCreate"
);
if
(
hmod
)
pDirectDrawCreate
=
(
DirectDrawCreateProc
)
GetProcAddress
(
hmod
,
"DirectDrawCreate"
);
}
}
if
(
pDirectDrawCreate
)
pDirectDrawCreate
(
NULL
,
&
lpddraw
,
NULL
);
if
(
pDirectDrawCreate
)
pDirectDrawCreate
(
NULL
,
&
lpddraw
,
NULL
);
if
(
!
lpddraw
)
{
if
(
!
lpddraw
)
{
...
...
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