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
a2227de7
Commit
a2227de7
authored
May 30, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Hold the lock in IDirectDrawPalette methods.
parent
38079e07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
palette.c
dlls/ddraw/palette.c
+17
-3
No files found.
dlls/ddraw/palette.c
View file @
a2227de7
...
...
@@ -105,11 +105,13 @@ IDirectDrawPaletteImpl_Release(IDirectDrawPalette *iface)
if
(
ref
==
0
)
{
EnterCriticalSection
(
&
ddraw_cs
);
IWineD3DPalette_Release
(
This
->
wineD3DPalette
);
if
(
This
->
ifaceToRelease
)
{
IUnknown_Release
(
This
->
ifaceToRelease
);
}
LeaveCriticalSection
(
&
ddraw_cs
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -160,9 +162,13 @@ IDirectDrawPaletteImpl_GetCaps(IDirectDrawPalette *iface,
DWORD
*
Caps
)
{
ICOM_THIS_FROM
(
IDirectDrawPaletteImpl
,
IDirectDrawPalette
,
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%p): Relay
\n
"
,
This
,
Caps
);
return
IWineD3DPalette_GetCaps
(
This
->
wineD3DPalette
,
Caps
);
EnterCriticalSection
(
&
ddraw_cs
);
hr
=
IWineD3DPalette_GetCaps
(
This
->
wineD3DPalette
,
Caps
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
hr
;
}
/*****************************************************************************
...
...
@@ -191,12 +197,16 @@ IDirectDrawPaletteImpl_SetEntries(IDirectDrawPalette *iface,
PALETTEENTRY
*
PalEnt
)
{
ICOM_THIS_FROM
(
IDirectDrawPaletteImpl
,
IDirectDrawPalette
,
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%x,%d,%d,%p): Relay
\n
"
,
This
,
Flags
,
Start
,
Count
,
PalEnt
);
if
(
!
PalEnt
)
return
DDERR_INVALIDPARAMS
;
return
IWineD3DPalette_SetEntries
(
This
->
wineD3DPalette
,
Flags
,
Start
,
Count
,
PalEnt
);
EnterCriticalSection
(
&
ddraw_cs
);
hr
=
IWineD3DPalette_SetEntries
(
This
->
wineD3DPalette
,
Flags
,
Start
,
Count
,
PalEnt
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
hr
;
}
/*****************************************************************************
...
...
@@ -224,12 +234,16 @@ IDirectDrawPaletteImpl_GetEntries(IDirectDrawPalette *iface,
PALETTEENTRY
*
PalEnt
)
{
ICOM_THIS_FROM
(
IDirectDrawPaletteImpl
,
IDirectDrawPalette
,
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%x,%d,%d,%p): Relay
\n
"
,
This
,
Flags
,
Start
,
Count
,
PalEnt
);
if
(
!
PalEnt
)
return
DDERR_INVALIDPARAMS
;
return
IWineD3DPalette_GetEntries
(
This
->
wineD3DPalette
,
Flags
,
Start
,
Count
,
PalEnt
);
EnterCriticalSection
(
&
ddraw_cs
);
hr
=
IWineD3DPalette_GetEntries
(
This
->
wineD3DPalette
,
Flags
,
Start
,
Count
,
PalEnt
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
hr
;
}
const
IDirectDrawPaletteVtbl
IDirectDrawPalette_Vtbl
=
...
...
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