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
a97ae0db
Commit
a97ae0db
authored
Jan 06, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass an IWineD3DResourceImpl pointer to resource_free_private_data().
parent
134137cd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
18 deletions
+23
-18
buffer.c
dlls/wined3d/buffer.c
+1
-1
cubetexture.c
dlls/wined3d/cubetexture.c
+3
-2
resource.c
dlls/wined3d/resource.c
+6
-6
surface_base.c
dlls/wined3d/surface_base.c
+3
-2
texture.c
dlls/wined3d/texture.c
+3
-2
volume.c
dlls/wined3d/volume.c
+3
-2
volumetexture.c
dlls/wined3d/volumetexture.c
+3
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/buffer.c
View file @
a97ae0db
...
...
@@ -775,7 +775,7 @@ static HRESULT STDMETHODCALLTYPE buffer_GetPrivateData(IWineD3DBuffer *iface,
static
HRESULT
STDMETHODCALLTYPE
buffer_FreePrivateData
(
IWineD3DBuffer
*
iface
,
REFGUID
guid
)
{
return
resource_free_private_data
((
IWineD3DResource
*
)
iface
,
guid
);
return
resource_free_private_data
((
IWineD3DResource
Impl
*
)
iface
,
guid
);
}
static
DWORD
STDMETHODCALLTYPE
buffer_SetPriority
(
IWineD3DBuffer
*
iface
,
DWORD
priority
)
...
...
dlls/wined3d/cubetexture.c
View file @
a97ae0db
...
...
@@ -222,8 +222,9 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_GetPrivateData(IWineD3DCubeTexture
return
resource_get_private_data
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_FreePrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResource
*
)
iface
,
refguid
);
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_FreePrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResourceImpl
*
)
iface
,
refguid
);
}
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_SetPriority
(
IWineD3DCubeTexture
*
iface
,
DWORD
PriorityNew
)
{
...
...
dlls/wined3d/resource.c
View file @
a97ae0db
...
...
@@ -110,7 +110,7 @@ void resource_cleanup(struct IWineD3DResourceImpl *resource)
LIST_FOR_EACH_SAFE
(
e1
,
e2
,
&
resource
->
resource
.
privateData
)
{
data
=
LIST_ENTRY
(
e1
,
struct
private_data
,
entry
);
hr
=
resource_free_private_data
(
(
IWineD3DResource
*
)
resource
,
&
data
->
tag
);
hr
=
resource_free_private_data
(
resource
,
&
data
->
tag
);
if
(
FAILED
(
hr
))
ERR
(
"Failed to free private data when destroying resource %p, hr = %#x.
\n
"
,
resource
,
hr
);
}
...
...
@@ -156,7 +156,7 @@ HRESULT resource_set_private_data(IWineD3DResource *iface, REFGUID refguid,
TRACE
(
"iface %p, riid %s, data %p, data_size %u, flags %#x.
\n
"
,
iface
,
debugstr_guid
(
refguid
),
pData
,
SizeOfData
,
flags
);
resource_free_private_data
(
iface
,
refguid
);
resource_free_private_data
(
This
,
refguid
);
data
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
data
));
if
(
!
data
)
return
E_OUTOFMEMORY
;
...
...
@@ -223,13 +223,13 @@ HRESULT resource_get_private_data(IWineD3DResource *iface, REFGUID refguid, void
return
WINED3D_OK
;
}
HRESULT
resource_free_private_data
(
IWineD3DResource
*
iface
,
REFGUID
ref
guid
)
HRESULT
resource_free_private_data
(
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
struct
private_data
*
data
;
TRACE
(
"(%p) : %s
\n
"
,
This
,
debugstr_guid
(
refguid
));
data
=
resource_find_private_data
(
This
,
refguid
);
TRACE
(
"resource %p, guid %s.
\n
"
,
resource
,
debugstr_guid
(
guid
));
data
=
resource_find_private_data
(
resource
,
guid
);
if
(
!
data
)
return
WINED3DERR_NOTFOUND
;
if
(
data
->
flags
&
WINED3DSPD_IUNKNOWN
)
...
...
dlls/wined3d/surface_base.c
View file @
a97ae0db
...
...
@@ -121,8 +121,9 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_GetPrivateData(IWineD3DSurface *iface, RE
return
resource_get_private_data
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_FreePrivateData
(
IWineD3DSurface
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResource
*
)
iface
,
refguid
);
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_FreePrivateData
(
IWineD3DSurface
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResourceImpl
*
)
iface
,
refguid
);
}
DWORD
WINAPI
IWineD3DBaseSurfaceImpl_SetPriority
(
IWineD3DSurface
*
iface
,
DWORD
PriorityNew
)
{
...
...
dlls/wined3d/texture.c
View file @
a97ae0db
...
...
@@ -247,8 +247,9 @@ static HRESULT WINAPI IWineD3DTextureImpl_GetPrivateData(IWineD3DTexture *iface,
return
resource_get_private_data
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
static
HRESULT
WINAPI
IWineD3DTextureImpl_FreePrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResource
*
)
iface
,
refguid
);
static
HRESULT
WINAPI
IWineD3DTextureImpl_FreePrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResourceImpl
*
)
iface
,
refguid
);
}
static
DWORD
WINAPI
IWineD3DTextureImpl_SetPriority
(
IWineD3DTexture
*
iface
,
DWORD
PriorityNew
)
{
...
...
dlls/wined3d/volume.c
View file @
a97ae0db
...
...
@@ -160,8 +160,9 @@ static HRESULT WINAPI IWineD3DVolumeImpl_GetPrivateData(IWineD3DVolume *iface, R
return
resource_get_private_data
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
static
HRESULT
WINAPI
IWineD3DVolumeImpl_FreePrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResource
*
)
iface
,
refguid
);
static
HRESULT
WINAPI
IWineD3DVolumeImpl_FreePrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResourceImpl
*
)
iface
,
refguid
);
}
static
DWORD
WINAPI
IWineD3DVolumeImpl_SetPriority
(
IWineD3DVolume
*
iface
,
DWORD
PriorityNew
)
{
...
...
dlls/wined3d/volumetexture.c
View file @
a97ae0db
...
...
@@ -167,8 +167,9 @@ static HRESULT WINAPI IWineD3DVolumeTextureImpl_GetPrivateData(IWineD3DVolumeTex
return
resource_get_private_data
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_FreePrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResource
*
)
iface
,
refguid
);
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_FreePrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
((
IWineD3DResourceImpl
*
)
iface
,
refguid
);
}
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetPriority
(
IWineD3DVolumeTexture
*
iface
,
DWORD
PriorityNew
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
a97ae0db
...
...
@@ -1829,7 +1829,7 @@ typedef struct IWineD3DResourceImpl
}
IWineD3DResourceImpl
;
void
resource_cleanup
(
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
HRESULT
resource_free_private_data
(
IWineD3DResource
*
ifa
ce
,
REFGUID
guid
)
DECLSPEC_HIDDEN
;
HRESULT
resource_free_private_data
(
struct
IWineD3DResourceImpl
*
resour
ce
,
REFGUID
guid
)
DECLSPEC_HIDDEN
;
DWORD
resource_get_priority
(
IWineD3DResource
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
resource_get_private_data
(
IWineD3DResource
*
iface
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
DECLSPEC_HIDDEN
;
...
...
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