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
2a13eb06
Commit
2a13eb06
authored
Mar 03, 2007
by
Kai Blin
Committed by
Alexandre Julliard
Mar 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Use skip and fix indentation.
parent
0210f5eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
dplayx.c
dlls/dplayx/tests/dplayx.c
+25
-20
No files found.
dlls/dplayx/tests/dplayx.c
View file @
2a13eb06
...
@@ -51,29 +51,34 @@ static void test_session_guid(LPDIRECTPLAY4 pDP)
...
@@ -51,29 +51,34 @@ static void test_session_guid(LPDIRECTPLAY4 pDP)
CoCreateGuid
(
&
appGuid
);
CoCreateGuid
(
&
appGuid
);
IDirectPlayX_EnumConnections
(
pDP
,
&
appGuid
,
EnumConnectionsCallback
,
pDP
,
0
);
IDirectPlayX_EnumConnections
(
pDP
,
&
appGuid
,
EnumConnectionsCallback
,
pDP
,
0
);
if
(
validSP
)
{
memset
(
&
sessionDesc
,
0
,
sizeof
(
DPSESSIONDESC2
));
memset
(
&
zeroGuid
,
0
,
16
);
sessionDesc
.
dwSize
=
sizeof
(
DPSESSIONDESC2
);
if
(
!
validSP
)
memcpy
(
&
sessionDesc
.
guidApplication
,
&
appGuid
,
16
);
{
sessionDesc
.
dwFlags
=
DPSESSION_CLIENTSERVER
;
skip
(
"Tests will not work without a valid service provider, skipping.
\n
"
);
sessionDesc
.
lpszSessionNameA
=
name
;
return
;
sessionDesc
.
dwMaxPlayers
=
10
;
sessionDesc
.
dwCurrentPlayers
=
0
;
IDirectPlayX_Open
(
pDP
,
&
sessionDesc
,
DPOPEN_CREATE
);
/* I read the sessiondesc from directplay in a fresh memory location,
because directplay does not touch the original struct, but saves
internally a version with the session guid set*/
IDirectPlayX_GetSessionDesc
(
pDP
,
NULL
,
&
sessionSize
);
newSession
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sessionSize
);
IDirectPlayX_GetSessionDesc
(
pDP
,
newSession
,
&
sessionSize
);
todo_wine
ok
(
!
IsEqualGUID
(
&
newSession
->
guidInstance
,
&
zeroGuid
),
"Session guid not initialized"
);
HeapFree
(
GetProcessHeap
(),
0
,
newSession
);
}
}
}
memset
(
&
sessionDesc
,
0
,
sizeof
(
DPSESSIONDESC2
));
memset
(
&
zeroGuid
,
0
,
16
);
sessionDesc
.
dwSize
=
sizeof
(
DPSESSIONDESC2
);
memcpy
(
&
sessionDesc
.
guidApplication
,
&
appGuid
,
16
);
sessionDesc
.
dwFlags
=
DPSESSION_CLIENTSERVER
;
sessionDesc
.
lpszSessionNameA
=
name
;
sessionDesc
.
dwMaxPlayers
=
10
;
sessionDesc
.
dwCurrentPlayers
=
0
;
IDirectPlayX_Open
(
pDP
,
&
sessionDesc
,
DPOPEN_CREATE
);
/* I read the sessiondesc from directplay in a fresh memory location,
because directplay does not touch the original struct, but saves
internally a version with the session guid set*/
IDirectPlayX_GetSessionDesc
(
pDP
,
NULL
,
&
sessionSize
);
newSession
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sessionSize
);
IDirectPlayX_GetSessionDesc
(
pDP
,
newSession
,
&
sessionSize
);
todo_wine
ok
(
!
IsEqualGUID
(
&
newSession
->
guidInstance
,
&
zeroGuid
),
"Session guid not initialized"
);
HeapFree
(
GetProcessHeap
(),
0
,
newSession
);
}
START_TEST
(
dplayx
)
START_TEST
(
dplayx
)
{
{
...
...
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