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
9e18b7ef
Commit
9e18b7ef
authored
Oct 07, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
Oct 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash if pDDSD is NULL on DirectDrawSurface::Lock.
parent
12a74998
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
ddraw_utils.c
dlls/ddraw/ddraw_utils.c
+9
-6
surface_main.c
dlls/ddraw/surface_main.c
+6
-0
No files found.
dlls/ddraw/ddraw_utils.c
View file @
9e18b7ef
...
...
@@ -640,14 +640,17 @@ void DDRAW_dump_surface_desc(const DDSURFACEDESC2 *lpddsd)
};
#undef STRUCT
if
(
lpddsd
->
dwSize
>=
sizeof
(
DDSURFACEDESC2
)
)
{
D
DRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members_caps2
,
1
);
if
(
NULL
==
lpddsd
)
{
D
PRINTF
(
"(null)
\n
"
);
}
else
{
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members_caps
,
1
);
if
(
lpddsd
->
dwSize
>=
sizeof
(
DDSURFACEDESC2
))
{
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members_caps2
,
1
);
}
else
{
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members_caps
,
1
);
}
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members
,
sizeof
(
members
)
/
sizeof
(
members
[
0
]));
}
DDRAW_dump_members
(
lpddsd
->
dwFlags
,
lpddsd
,
members
,
sizeof
(
members
)
/
sizeof
(
members
[
0
]));
}
void
DDRAW_dump_cooperativelevel
(
DWORD
cooplevel
)
...
...
dlls/ddraw/surface_main.c
View file @
9e18b7ef
...
...
@@ -1093,6 +1093,12 @@ Main_DirectDrawSurface_Lock(LPDIRECTDRAWSURFACE7 iface, LPRECT prect,
WARN
(
" - unsupported locking flag : "
);
DDRAW_dump_lockflag
(
flags
&
~
(
DDLOCK_WAIT
|
DDLOCK_READONLY
|
DDLOCK_WRITEONLY
));
}
}
if
(
NULL
!=
h
)
{
return
DDERR_INVALIDPARAMS
;
}
if
(
NULL
==
pDDSD
)
{
return
DDERR_INVALIDPARAMS
;
/** really ? */
}
/* If the surface is already locked, return busy */
if
(
This
->
locked
)
{
...
...
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