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
44ab484a
Commit
44ab484a
authored
Jan 13, 2010
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Remove currently unused unicode code (Coverity).
parent
d7557a19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
name_server.c
dlls/dplayx/name_server.c
+7
-22
No files found.
dlls/dplayx/name_server.c
View file @
44ab484a
...
...
@@ -362,21 +362,13 @@ void NS_ReplyToEnumSessionsRequest( LPCVOID lpcMsg,
DWORD
dwVariableSize
;
DWORD
dwVariableLen
;
/* LPCDPMSG_ENUMSESSIONSREQUEST msg = (LPDPMSG_ENUMSESSIONSREQUEST)lpcMsg; */
BOOL
bAnsi
=
TRUE
;
/* FIXME: This needs to be in the DPLAY interface */
FIXME
(
": few fixed + need to check request for response
\n
"
);
if
(
bAnsi
)
{
dwVariableLen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpDP
->
dp2
->
lpSessionDesc
->
u1
.
lpszSessionNameA
,
-
1
,
NULL
,
0
);
}
else
{
dwVariableLen
=
strlenW
(
lpDP
->
dp2
->
lpSessionDesc
->
u1
.
lpszSessionName
)
+
1
;
}
/* FIXME: Should handle ANSI or WIDECHAR input. Currently just ANSI input */
FIXME
(
": few fixed + need to check request for response, might need UNICODE input ability.
\n
"
);
dwVariableLen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpDP
->
dp2
->
lpSessionDesc
->
u1
.
lpszSessionNameA
,
-
1
,
NULL
,
0
);
dwVariableSize
=
dwVariableLen
*
sizeof
(
WCHAR
);
*
lpdwReplySize
=
lpDP
->
dp2
->
spData
.
dwSPHeaderSize
+
...
...
@@ -394,13 +386,6 @@ void NS_ReplyToEnumSessionsRequest( LPCVOID lpcMsg,
CopyMemory
(
&
rmsg
->
sd
,
lpDP
->
dp2
->
lpSessionDesc
,
lpDP
->
dp2
->
lpSessionDesc
->
dwSize
);
rmsg
->
dwUnknown
=
0x0000005c
;
if
(
bAnsi
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
lpDP
->
dp2
->
lpSessionDesc
->
u1
.
lpszSessionNameA
,
-
1
,
(
LPWSTR
)(
rmsg
+
1
),
dwVariableLen
);
}
else
{
strcpyW
(
(
LPWSTR
)(
rmsg
+
1
),
lpDP
->
dp2
->
lpSessionDesc
->
u1
.
lpszSessionName
);
}
MultiByteToWideChar
(
CP_ACP
,
0
,
lpDP
->
dp2
->
lpSessionDesc
->
u1
.
lpszSessionNameA
,
-
1
,
(
LPWSTR
)(
rmsg
+
1
),
dwVariableLen
);
}
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