Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3fd8c85f
Commit
3fd8c85f
authored
Jun 07, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jun 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Replace RPCRT4_strndupA with strdup.
parent
07d0f1f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
+3
-17
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+3
-16
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+0
-1
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
3fd8c85f
...
@@ -43,19 +43,6 @@
...
@@ -43,19 +43,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
rpc
);
WINE_DEFAULT_DEBUG_CHANNEL
(
rpc
);
LPSTR
RPCRT4_strndupA
(
LPCSTR
src
,
INT
slen
)
{
DWORD
len
;
LPSTR
s
;
if
(
!
src
)
return
NULL
;
if
(
slen
==
-
1
)
slen
=
strlen
(
src
);
len
=
slen
;
s
=
malloc
(
len
+
1
);
memcpy
(
s
,
src
,
len
);
s
[
len
]
=
0
;
return
s
;
}
LPSTR
RPCRT4_strdupWtoA
(
LPCWSTR
src
)
LPSTR
RPCRT4_strdupWtoA
(
LPCWSTR
src
)
{
{
DWORD
len
;
DWORD
len
;
...
@@ -992,9 +979,9 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy(
...
@@ -992,9 +979,9 @@ RPC_STATUS RPC_ENTRY RpcBindingCopy(
DestBinding
->
ObjectUuid
=
SrcBinding
->
ObjectUuid
;
DestBinding
->
ObjectUuid
=
SrcBinding
->
ObjectUuid
;
DestBinding
->
BlockingFn
=
SrcBinding
->
BlockingFn
;
DestBinding
->
BlockingFn
=
SrcBinding
->
BlockingFn
;
DestBinding
->
Protseq
=
RPCRT4_strndupA
(
SrcBinding
->
Protseq
,
-
1
);
DestBinding
->
Protseq
=
strdup
(
SrcBinding
->
Protseq
);
DestBinding
->
NetworkAddr
=
RPCRT4_strndupA
(
SrcBinding
->
NetworkAddr
,
-
1
);
DestBinding
->
NetworkAddr
=
strdup
(
SrcBinding
->
NetworkAddr
);
DestBinding
->
Endpoint
=
RPCRT4_strndupA
(
SrcBinding
->
Endpoint
,
-
1
);
DestBinding
->
Endpoint
=
strdup
(
SrcBinding
->
Endpoint
);
DestBinding
->
NetworkOptions
=
wcsdup
(
SrcBinding
->
NetworkOptions
);
DestBinding
->
NetworkOptions
=
wcsdup
(
SrcBinding
->
NetworkOptions
);
DestBinding
->
CookieAuth
=
wcsdup
(
SrcBinding
->
CookieAuth
);
DestBinding
->
CookieAuth
=
wcsdup
(
SrcBinding
->
CookieAuth
);
if
(
SrcBinding
->
Assoc
)
SrcBinding
->
Assoc
->
refs
++
;
if
(
SrcBinding
->
Assoc
)
SrcBinding
->
Assoc
->
refs
++
;
...
...
dlls/rpcrt4/rpc_binding.h
View file @
3fd8c85f
...
@@ -143,7 +143,6 @@ typedef struct _RpcBinding
...
@@ -143,7 +143,6 @@ typedef struct _RpcBinding
LPWSTR
CookieAuth
;
LPWSTR
CookieAuth
;
}
RpcBinding
;
}
RpcBinding
;
LPSTR
RPCRT4_strndupA
(
LPCSTR
src
,
INT
len
)
DECLSPEC_HIDDEN
;
LPWSTR
RPCRT4_strndupW
(
LPCWSTR
src
,
INT
len
)
DECLSPEC_HIDDEN
;
LPWSTR
RPCRT4_strndupW
(
LPCWSTR
src
,
INT
len
)
DECLSPEC_HIDDEN
;
LPSTR
RPCRT4_strdupWtoA
(
LPCWSTR
src
)
DECLSPEC_HIDDEN
;
LPSTR
RPCRT4_strdupWtoA
(
LPCWSTR
src
)
DECLSPEC_HIDDEN
;
LPWSTR
RPCRT4_strdupAtoW
(
LPCSTR
src
)
DECLSPEC_HIDDEN
;
LPWSTR
RPCRT4_strdupAtoW
(
LPCSTR
src
)
DECLSPEC_HIDDEN
;
...
...
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