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
5f42f7d4
Commit
5f42f7d4
authored
Jan 25, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: AddRef the correct interface pointer in AddAttachedSurface.
parent
67771c59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
surface.c
dlls/ddraw/surface.c
+5
-5
No files found.
dlls/ddraw/surface.c
View file @
5f42f7d4
...
...
@@ -1605,7 +1605,7 @@ static HRESULT WINAPI ddraw_surface7_AddAttachedSurface(IDirectDrawSurface7 *ifa
{
return
hr
;
}
ddraw_surface7_AddRef
(
attachment
);
ddraw_surface7_AddRef
(
&
attachment_impl
->
IDirectDrawSurface7_iface
);
attachment_impl
->
attached_iface
=
(
IUnknown
*
)
attachment
;
return
hr
;
}
...
...
@@ -1624,7 +1624,7 @@ static HRESULT WINAPI ddraw_surface4_AddAttachedSurface(IDirectDrawSurface4 *ifa
{
return
hr
;
}
ddraw_surface4_AddRef
(
attachment
);
ddraw_surface4_AddRef
(
&
attachment_impl
->
IDirectDrawSurface4_iface
);
ddraw_surface7_Release
(
&
attachment_impl
->
IDirectDrawSurface7_iface
);
attachment_impl
->
attached_iface
=
(
IUnknown
*
)
attachment
;
return
hr
;
...
...
@@ -1670,7 +1670,7 @@ static HRESULT WINAPI ddraw_surface3_AddAttachedSurface(IDirectDrawSurface3 *ifa
{
return
hr
;
}
ddraw_surface3_AddRef
(
attachment
);
ddraw_surface3_AddRef
(
&
attachment_impl
->
IDirectDrawSurface3_iface
);
attachment_impl
->
attached_iface
=
(
IUnknown
*
)
attachment
;
return
hr
;
}
...
...
@@ -1689,7 +1689,7 @@ static HRESULT WINAPI ddraw_surface2_AddAttachedSurface(IDirectDrawSurface2 *ifa
{
return
hr
;
}
ddraw_surface2_AddRef
(
attachment
);
ddraw_surface2_AddRef
(
&
attachment_impl
->
IDirectDrawSurface2_iface
);
ddraw_surface3_Release
(
&
attachment_impl
->
IDirectDrawSurface3_iface
);
attachment_impl
->
attached_iface
=
(
IUnknown
*
)
attachment
;
return
hr
;
...
...
@@ -1709,7 +1709,7 @@ static HRESULT WINAPI ddraw_surface1_AddAttachedSurface(IDirectDrawSurface *ifac
{
return
hr
;
}
ddraw_surface1_AddRef
(
attachment
);
ddraw_surface1_AddRef
(
&
attachment_impl
->
IDirectDrawSurface_iface
);
ddraw_surface3_Release
(
&
attachment_impl
->
IDirectDrawSurface3_iface
);
attachment_impl
->
attached_iface
=
(
IUnknown
*
)
attachment
;
return
hr
;
...
...
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