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
5e5a4846
Commit
5e5a4846
authored
Jun 03, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f56059e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
21 deletions
+18
-21
Makefile.in
dlls/dplayx/Makefile.in
+2
-0
dplay.c
dlls/dplayx/dplay.c
+4
-7
dplayx_global.c
dlls/dplayx/dplayx_global.c
+12
-13
name_server.c
dlls/dplayx/name_server.c
+0
-1
No files found.
dlls/dplayx/Makefile.in
View file @
5e5a4846
...
...
@@ -2,6 +2,8 @@ MODULE = dplayx.dll
IMPORTLIB
=
dplayx
IMPORTS
=
dxguid uuid winmm ole32 user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
dpclassfactory.c
\
dplay.c
\
...
...
dlls/dplayx/dplay.c
View file @
5e5a4846
...
...
@@ -18,8 +18,6 @@
*/
#define COBJMACROS
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <string.h>
...
...
@@ -32,7 +30,6 @@
#include "winnt.h"
#include "winreg.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "dplayx_global.h"
...
...
@@ -1440,14 +1437,14 @@ static BOOL DP_CopyDPNAMEStruct( LPDPNAME lpDst, const DPNAME *lpSrc, BOOL bAnsi
if
(
lpSrc
->
u1
.
lpszShortNameA
)
{
lpDst
->
u1
.
lpszShortName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
lpSrc
->
u1
.
lpszShortName
)
+
1
)
*
sizeof
(
WCHAR
)
);
strcpyW
(
lpDst
->
u1
.
lpszShortName
,
lpSrc
->
u1
.
lpszShortName
);
(
l
strlenW
(
lpSrc
->
u1
.
lpszShortName
)
+
1
)
*
sizeof
(
WCHAR
)
);
l
strcpyW
(
lpDst
->
u1
.
lpszShortName
,
lpSrc
->
u1
.
lpszShortName
);
}
if
(
lpSrc
->
u2
.
lpszLongNameA
)
{
lpDst
->
u2
.
lpszLongName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
lpSrc
->
u2
.
lpszLongName
)
+
1
)
*
sizeof
(
WCHAR
)
);
strcpyW
(
lpDst
->
u2
.
lpszLongName
,
lpSrc
->
u2
.
lpszLongName
);
(
l
strlenW
(
lpSrc
->
u2
.
lpszLongName
)
+
1
)
*
sizeof
(
WCHAR
)
);
l
strcpyW
(
lpDst
->
u2
.
lpszLongName
,
lpSrc
->
u2
.
lpszLongName
);
}
}
...
...
dlls/dplayx/dplayx_global.c
View file @
5e5a4846
...
...
@@ -38,7 +38,6 @@
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "wine/unicode.h"
#include "wingdi.h"
#include "winuser.h"
...
...
@@ -624,18 +623,18 @@ static void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, const DPLCONNECTION *s
/* Session names may or may not exist */
if
(
src
->
lpSessionDesc
->
u1
.
lpszSessionName
)
{
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpSessionDesc
->
u1
.
lpszSessionName
);
l
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpSessionDesc
->
u1
.
lpszSessionName
);
dest
->
lpSessionDesc
->
u1
.
lpszSessionName
=
(
LPWSTR
)
lpStartOfFreeSpace
;
lpStartOfFreeSpace
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
dest
->
lpSessionDesc
->
u1
.
lpszSessionName
)
+
1
);
(
l
strlenW
(
dest
->
lpSessionDesc
->
u1
.
lpszSessionName
)
+
1
);
}
if
(
src
->
lpSessionDesc
->
u2
.
lpszPassword
)
{
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpSessionDesc
->
u2
.
lpszPassword
);
l
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpSessionDesc
->
u2
.
lpszPassword
);
dest
->
lpSessionDesc
->
u2
.
lpszPassword
=
(
LPWSTR
)
lpStartOfFreeSpace
;
lpStartOfFreeSpace
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
dest
->
lpSessionDesc
->
u2
.
lpszPassword
)
+
1
);
(
l
strlenW
(
dest
->
lpSessionDesc
->
u2
.
lpszPassword
)
+
1
);
}
}
...
...
@@ -648,18 +647,18 @@ static void DPLAYX_CopyConnStructW( LPDPLCONNECTION dest, const DPLCONNECTION *s
if
(
src
->
lpPlayerName
->
u1
.
lpszShortName
)
{
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpPlayerName
->
u1
.
lpszShortName
);
l
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpPlayerName
->
u1
.
lpszShortName
);
dest
->
lpPlayerName
->
u1
.
lpszShortName
=
(
LPWSTR
)
lpStartOfFreeSpace
;
lpStartOfFreeSpace
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
dest
->
lpPlayerName
->
u1
.
lpszShortName
)
+
1
);
(
l
strlenW
(
dest
->
lpPlayerName
->
u1
.
lpszShortName
)
+
1
);
}
if
(
src
->
lpPlayerName
->
u2
.
lpszLongName
)
{
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpPlayerName
->
u2
.
lpszLongName
);
l
strcpyW
(
(
LPWSTR
)
lpStartOfFreeSpace
,
src
->
lpPlayerName
->
u2
.
lpszLongName
);
dest
->
lpPlayerName
->
u2
.
lpszLongName
=
(
LPWSTR
)
lpStartOfFreeSpace
;
lpStartOfFreeSpace
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
dest
->
lpPlayerName
->
u2
.
lpszLongName
)
+
1
);
(
l
strlenW
(
dest
->
lpPlayerName
->
u2
.
lpszLongName
)
+
1
);
}
}
...
...
@@ -739,13 +738,13 @@ static DWORD DPLAYX_SizeOfLobbyDataW( const DPLCONNECTION *lpConn )
if
(
lpConn
->
lpSessionDesc
->
u1
.
lpszSessionName
)
{
dwTotalSize
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
lpConn
->
lpSessionDesc
->
u1
.
lpszSessionName
)
+
1
);
(
l
strlenW
(
lpConn
->
lpSessionDesc
->
u1
.
lpszSessionName
)
+
1
);
}
if
(
lpConn
->
lpSessionDesc
->
u2
.
lpszPassword
)
{
dwTotalSize
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
lpConn
->
lpSessionDesc
->
u2
.
lpszPassword
)
+
1
);
(
l
strlenW
(
lpConn
->
lpSessionDesc
->
u2
.
lpszPassword
)
+
1
);
}
}
...
...
@@ -756,13 +755,13 @@ static DWORD DPLAYX_SizeOfLobbyDataW( const DPLCONNECTION *lpConn )
if
(
lpConn
->
lpPlayerName
->
u1
.
lpszShortName
)
{
dwTotalSize
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
lpConn
->
lpPlayerName
->
u1
.
lpszShortName
)
+
1
);
(
l
strlenW
(
lpConn
->
lpPlayerName
->
u1
.
lpszShortName
)
+
1
);
}
if
(
lpConn
->
lpPlayerName
->
u2
.
lpszLongName
)
{
dwTotalSize
+=
sizeof
(
WCHAR
)
*
(
strlenW
(
lpConn
->
lpPlayerName
->
u2
.
lpszLongName
)
+
1
);
(
l
strlenW
(
lpConn
->
lpPlayerName
->
u2
.
lpszLongName
)
+
1
);
}
}
...
...
dlls/dplayx/name_server.c
View file @
5e5a4846
...
...
@@ -27,7 +27,6 @@
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "mmsystem.h"
...
...
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