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
f830a12d
Commit
f830a12d
authored
Sep 24, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove redundant NULL check before SysFreeString (Smatch).
parent
1949a8c2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
10 deletions
+0
-10
oleaut.c
dlls/oleaut32/oleaut.c
+0
-1
safearray.c
dlls/oleaut32/safearray.c
+0
-2
usrmarshal.c
dlls/oleaut32/usrmarshal.c
+0
-6
variant.c
dlls/oleaut32/variant.c
+0
-1
No files found.
dlls/oleaut32/oleaut.c
View file @
f830a12d
...
...
@@ -419,7 +419,6 @@ INT WINAPI SysReAllocString(LPBSTR old,LPCOLESTR str)
/*
* Make sure we free the old string.
*/
if
(
*
old
!=
NULL
)
SysFreeString
(
*
old
);
/*
...
...
dlls/oleaut32/safearray.c
View file @
f830a12d
...
...
@@ -314,7 +314,6 @@ static HRESULT SAFEARRAY_DestroyData(SAFEARRAY *psa, ULONG ulStartCell)
while
(
ulCellCount
--
)
{
if
(
*
lpBstr
)
SysFreeString
(
*
lpBstr
);
lpBstr
++
;
}
...
...
@@ -865,7 +864,6 @@ HRESULT WINAPI SafeArrayPutElement(SAFEARRAY *psa, LONG *rgIndices, void *pvData
BSTR
lpBstr
=
(
BSTR
)
pvData
;
BSTR
*
lpDest
=
(
BSTR
*
)
lpvDest
;
if
(
*
lpDest
)
SysFreeString
(
*
lpDest
);
*
lpDest
=
SysAllocStringByteLen
((
char
*
)
lpBstr
,
SysStringByteLen
(
lpBstr
));
...
...
dlls/oleaut32/usrmarshal.c
View file @
f830a12d
...
...
@@ -187,11 +187,8 @@ unsigned char * WINAPI BSTR_UserUnmarshal(ULONG *pFlags, unsigned char *Buffer,
if
(
header
->
len
!=
header
->
len2
)
FIXME
(
"len %08x != len2 %08x
\n
"
,
header
->
len
,
header
->
len2
);
if
(
*
pstr
)
{
SysFreeString
(
*
pstr
);
*
pstr
=
NULL
;
}
if
(
header
->
byte_len
!=
0xffffffff
)
*
pstr
=
SysAllocStringByteLen
((
char
*
)(
header
+
1
),
header
->
byte_len
);
...
...
@@ -203,11 +200,8 @@ unsigned char * WINAPI BSTR_UserUnmarshal(ULONG *pFlags, unsigned char *Buffer,
void
WINAPI
BSTR_UserFree
(
ULONG
*
pFlags
,
BSTR
*
pstr
)
{
TRACE
(
"(%x,%p) => %p
\n
"
,
*
pFlags
,
pstr
,
*
pstr
);
if
(
*
pstr
)
{
SysFreeString
(
*
pstr
);
*
pstr
=
NULL
;
}
}
/* VARIANT */
...
...
dlls/oleaut32/variant.c
View file @
f830a12d
...
...
@@ -608,7 +608,6 @@ HRESULT WINAPI VariantClear(VARIANTARG* pVarg)
}
else
if
(
V_VT
(
pVarg
)
==
VT_BSTR
)
{
if
(
V_BSTR
(
pVarg
))
SysFreeString
(
V_BSTR
(
pVarg
));
}
else
if
(
V_VT
(
pVarg
)
==
VT_RECORD
)
...
...
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