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
64b40aeb
Commit
64b40aeb
authored
Jan 08, 2014
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jan 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Add stubbed interface IDirectPlay8Server.
parent
31a283d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
1 deletion
+68
-1
server.c
dlls/dpnet/server.c
+0
-0
Makefile.in
dlls/dpnet/tests/Makefile.in
+2
-1
server.c
dlls/dpnet/tests/server.c
+66
-0
No files found.
dlls/dpnet/server.c
View file @
64b40aeb
This diff is collapsed.
Click to expand it.
dlls/dpnet/tests/Makefile.in
View file @
64b40aeb
...
...
@@ -2,4 +2,5 @@ TESTDLL = dpnet.dll
IMPORTS
=
dpnet ole32
C_SRCS
=
\
peer.c
peer.c
\
server.c
dlls/dpnet/tests/server.c
0 → 100644
View file @
64b40aeb
/*
* Copyright 2014 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <dplay8.h>
#include "wine/test.h"
static
HRESULT
WINAPI
DirectPlayMessageHandler
(
PVOID
pvUserContext
,
DWORD
dwMessageId
,
PVOID
pMsgBuffer
)
{
return
S_OK
;
}
static
void
create_server
(
void
)
{
HRESULT
hr
;
IDirectPlay8Server
*
server
=
NULL
;
hr
=
CoCreateInstance
(
&
CLSID_DirectPlay8Server
,
NULL
,
CLSCTX_ALL
,
&
IID_IDirectPlay8Server
,
(
LPVOID
*
)
&
server
);
ok
(
hr
==
S_OK
,
"Failed to create IDirectPlay8Server object"
);
if
(
SUCCEEDED
(
hr
)
)
{
hr
=
IDirectPlay8Server_Close
(
server
,
0
);
todo_wine
ok
(
hr
==
DPNERR_UNINITIALIZED
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDirectPlay8Server_Initialize
(
server
,
NULL
,
DirectPlayMessageHandler
,
0
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
hr
=
IDirectPlay8Server_Close
(
server
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
}
IDirectPlay8Server_Release
(
server
);
}
}
START_TEST
(
server
)
{
HRESULT
hr
;
hr
=
CoInitialize
(
0
);
ok
(
hr
==
S_OK
,
"failed to init com
\n
"
);
if
(
hr
!=
S_OK
)
return
;
create_server
();
CoUninitialize
();
}
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