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
61ee3323
Commit
61ee3323
authored
Aug 19, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Clear application-passed lpSurface pointers.
parent
fc6ec997
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
0 deletions
+5
-0
surface.c
dlls/ddraw/surface.c
+1
-0
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+1
-0
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+1
-0
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+1
-0
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+1
-0
No files found.
dlls/ddraw/surface.c
View file @
61ee3323
...
...
@@ -6224,6 +6224,7 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw, s
desc
->
u1
.
lPitch
=
wined3d_surface_get_pitch
(
wined3d_surface
);
}
}
desc
->
lpSurface
=
NULL
;
wined3d_surface_incref
(
wined3d_surface
);
surface
->
wined3d_surface
=
wined3d_surface
;
...
...
dlls/ddraw/tests/ddraw1.c
View file @
61ee3323
...
...
@@ -4576,6 +4576,7 @@ static void test_create_surface_pitch(void)
ok
(
U1
(
surface_desc
).
lPitch
==
test_data
[
i
].
pitch_out32
,
"Test %u: Got unexpected pitch %u, expected %u.
\n
"
,
i
,
U1
(
surface_desc
).
lPitch
,
test_data
[
i
].
pitch_out32
);
ok
(
!
surface_desc
.
lpSurface
,
"Test %u: Got unexpected lpSurface %p.
\n
"
,
i
,
surface_desc
.
lpSurface
);
IDirectDrawSurface_Release
(
surface
);
}
...
...
dlls/ddraw/tests/ddraw2.c
View file @
61ee3323
...
...
@@ -5652,6 +5652,7 @@ static void test_create_surface_pitch(void)
ok
(
U1
(
surface_desc
).
lPitch
==
test_data
[
i
].
pitch_out32
,
"Test %u: Got unexpected pitch %u, expected %u.
\n
"
,
i
,
U1
(
surface_desc
).
lPitch
,
test_data
[
i
].
pitch_out32
);
ok
(
!
surface_desc
.
lpSurface
,
"Test %u: Got unexpected lpSurface %p.
\n
"
,
i
,
surface_desc
.
lpSurface
);
IDirectDrawSurface_Release
(
surface
);
}
...
...
dlls/ddraw/tests/ddraw4.c
View file @
61ee3323
...
...
@@ -6649,6 +6649,7 @@ static void test_create_surface_pitch(void)
ok
(
U1
(
surface_desc
).
lPitch
==
test_data
[
i
].
pitch_out32
,
"Test %u: Got unexpected pitch %u, expected %u.
\n
"
,
i
,
U1
(
surface_desc
).
lPitch
,
test_data
[
i
].
pitch_out32
);
ok
(
!
surface_desc
.
lpSurface
,
"Test %u: Got unexpected lpSurface %p.
\n
"
,
i
,
surface_desc
.
lpSurface
);
IDirectDrawSurface4_Release
(
surface
);
}
...
...
dlls/ddraw/tests/ddraw7.c
View file @
61ee3323
...
...
@@ -6472,6 +6472,7 @@ static void test_create_surface_pitch(void)
ok
(
U1
(
surface_desc
).
lPitch
==
test_data
[
i
].
pitch_out32
,
"Test %u: Got unexpected pitch %u, expected %u.
\n
"
,
i
,
U1
(
surface_desc
).
lPitch
,
test_data
[
i
].
pitch_out32
);
ok
(
!
surface_desc
.
lpSurface
,
"Test %u: Got unexpected lpSurface %p.
\n
"
,
i
,
surface_desc
.
lpSurface
);
IDirectDrawSurface7_Release
(
surface
);
}
...
...
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