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
81c0e1ea
Commit
81c0e1ea
authored
Oct 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Reorder code to make sure RpcBindingFromStringBinding[AW] cleans up (coverity).
parent
7c381e59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+20
-18
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
81c0e1ea
...
...
@@ -851,10 +851,16 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingA( RPC_CSTR StringBinding, RPC_BIND
if
(
ret
==
RPC_S_OK
)
ret
=
RPCRT4_CreateBindingA
(
&
bind
,
FALSE
,
(
char
*
)
Protseq
);
if
(
ret
!=
RPC_S_OK
)
return
ret
;
ret
=
RPCRT4_SetBindingObject
(
bind
,
&
Uuid
);
if
(
ret
==
RPC_S_OK
)
ret
=
RPCRT4_CompleteBindingA
(
bind
,
(
char
*
)
NetworkAddr
,
(
char
*
)
Endpoint
,
(
char
*
)
Options
);
if
(
ret
==
RPC_S_OK
)
{
ret
=
RPCRT4_SetBindingObject
(
bind
,
&
Uuid
);
if
(
ret
==
RPC_S_OK
)
ret
=
RPCRT4_CompleteBindingA
(
bind
,
(
char
*
)
NetworkAddr
,
(
char
*
)
Endpoint
,
(
char
*
)
Options
);
if
(
ret
==
RPC_S_OK
)
*
Binding
=
(
RPC_BINDING_HANDLE
)
bind
;
else
RPCRT4_ReleaseBinding
(
bind
);
}
RpcStringFreeA
(
&
Options
);
RpcStringFreeA
(
&
Endpoint
);
...
...
@@ -862,11 +868,6 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingA( RPC_CSTR StringBinding, RPC_BIND
RpcStringFreeA
(
&
Protseq
);
RpcStringFreeA
(
&
ObjectUuid
);
if
(
ret
==
RPC_S_OK
)
*
Binding
=
(
RPC_BINDING_HANDLE
)
bind
;
else
RPCRT4_ReleaseBinding
(
bind
);
return
ret
;
}
...
...
@@ -890,10 +891,16 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingW( RPC_WSTR StringBinding, RPC_BIND
if
(
ret
==
RPC_S_OK
)
ret
=
RPCRT4_CreateBindingW
(
&
bind
,
FALSE
,
Protseq
);
if
(
ret
!=
RPC_S_OK
)
return
ret
;
ret
=
RPCRT4_SetBindingObject
(
bind
,
&
Uuid
);
if
(
ret
==
RPC_S_OK
)
ret
=
RPCRT4_CompleteBindingW
(
bind
,
NetworkAddr
,
Endpoint
,
Options
);
if
(
ret
==
RPC_S_OK
)
{
ret
=
RPCRT4_SetBindingObject
(
bind
,
&
Uuid
);
if
(
ret
==
RPC_S_OK
)
ret
=
RPCRT4_CompleteBindingW
(
bind
,
NetworkAddr
,
Endpoint
,
Options
);
if
(
ret
==
RPC_S_OK
)
*
Binding
=
(
RPC_BINDING_HANDLE
)
bind
;
else
RPCRT4_ReleaseBinding
(
bind
);
}
RpcStringFreeW
(
&
Options
);
RpcStringFreeW
(
&
Endpoint
);
...
...
@@ -901,11 +908,6 @@ RPC_STATUS WINAPI RpcBindingFromStringBindingW( RPC_WSTR StringBinding, RPC_BIND
RpcStringFreeW
(
&
Protseq
);
RpcStringFreeW
(
&
ObjectUuid
);
if
(
ret
==
RPC_S_OK
)
*
Binding
=
(
RPC_BINDING_HANDLE
)
bind
;
else
RPCRT4_ReleaseBinding
(
bind
);
return
ret
;
}
...
...
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