Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a966f974
Commit
a966f974
authored
Sep 03, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Remove the unused lock from IDPLobbySPImpl.
parent
b11dddf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
41 deletions
+1
-41
lobbysp.c
dlls/dplayx/lobbysp.c
+1
-41
No files found.
dlls/dplayx/lobbysp.c
View file @
a966f974
...
...
@@ -27,8 +27,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dplay
);
/* Prototypes */
static
BOOL
DPLSP_CreateIUnknown
(
LPVOID
lpSP
);
static
BOOL
DPLSP_DestroyIUnknown
(
LPVOID
lpSP
);
static
BOOL
DPLSP_CreateDPLobbySP
(
void
*
lpSP
,
IDirectPlayImpl
*
dp
);
static
BOOL
DPLSP_DestroyDPLobbySP
(
LPVOID
lpSP
);
...
...
@@ -36,18 +34,12 @@ static BOOL DPLSP_DestroyDPLobbySP( LPVOID lpSP );
/* Predefine the interface */
typedef
struct
IDPLobbySPImpl
IDPLobbySPImpl
;
typedef
struct
tagDPLobbySPIUnknownData
{
CRITICAL_SECTION
DPLSP_lock
;
}
DPLobbySPIUnknownData
;
typedef
struct
tagDPLobbySPData
{
IDirectPlayImpl
*
dplay
;
}
DPLobbySPData
;
#define DPLSP_IMPL_FIELDS \
DPLobbySPIUnknownData* unk; \
DPLobbySPData* sp;
struct
IDPLobbySPImpl
...
...
@@ -92,9 +84,7 @@ HRESULT DPLSP_CreateInterface( REFIID riid, void **ppvObj, IDirectPlayImpl *dp )
}
/* Initialize it */
if
(
DPLSP_CreateIUnknown
(
*
ppvObj
)
&&
DPLSP_CreateDPLobbySP
(
*
ppvObj
,
dp
)
)
if
(
DPLSP_CreateDPLobbySP
(
*
ppvObj
,
dp
)
)
{
IDPLobbySP_AddRef
(
(
LPDPLOBBYSP
)
*
ppvObj
);
return
S_OK
;
...
...
@@ -102,7 +92,6 @@ HRESULT DPLSP_CreateInterface( REFIID riid, void **ppvObj, IDirectPlayImpl *dp )
/* Initialize failed, destroy it */
DPLSP_DestroyDPLobbySP
(
*
ppvObj
);
DPLSP_DestroyIUnknown
(
*
ppvObj
);
HeapFree
(
GetProcessHeap
(),
0
,
*
ppvObj
);
*
ppvObj
=
NULL
;
...
...
@@ -110,34 +99,6 @@ HRESULT DPLSP_CreateInterface( REFIID riid, void **ppvObj, IDirectPlayImpl *dp )
return
DPERR_NOMEMORY
;
}
static
BOOL
DPLSP_CreateIUnknown
(
LPVOID
lpSP
)
{
IDPLobbySPImpl
*
This
=
lpSP
;
This
->
unk
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
(
This
->
unk
)
)
);
if
(
This
->
unk
==
NULL
)
{
return
FALSE
;
}
InitializeCriticalSection
(
&
This
->
unk
->
DPLSP_lock
);
This
->
unk
->
DPLSP_lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": IDPLobbySPImpl*->DPLobbySPIUnknownData*->DPLSP_lock"
);
return
TRUE
;
}
static
BOOL
DPLSP_DestroyIUnknown
(
LPVOID
lpSP
)
{
IDPLobbySPImpl
*
This
=
lpSP
;
This
->
unk
->
DPLSP_lock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
unk
->
DPLSP_lock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
unk
);
return
TRUE
;
}
static
BOOL
DPLSP_CreateDPLobbySP
(
void
*
lpSP
,
IDirectPlayImpl
*
dp
)
{
IDPLobbySPImpl
*
This
=
lpSP
;
...
...
@@ -200,7 +161,6 @@ static ULONG WINAPI IDPLobbySPImpl_Release( IDPLobbySP *iface )
if
(
!
ref
)
{
DPLSP_DestroyDPLobbySP
(
This
);
DPLSP_DestroyIUnknown
(
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
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