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
63ed9117
Commit
63ed9117
authored
May 17, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: automation: Check for NULL source string before calling lstrcpyW.
parent
f1f687e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
automation.c
dlls/msi/tests/automation.c
+5
-5
No files found.
dlls/msi/tests/automation.c
View file @
63ed9117
...
...
@@ -684,7 +684,7 @@ static HRESULT Installer_RegistryValueW(HKEY hkey, LPCWSTR szKey, LPCWSTR szValu
V_BSTR
(
&
vararg
)
=
SysAllocString
(
szValue
);
hr
=
Installer_RegistryValue
(
hkey
,
szKey
,
vararg
,
&
varresult
,
VT_BSTR
);
lstrcpyW
(
szString
,
V_BSTR
(
&
varresult
));
if
(
V_BSTR
(
&
varresult
))
lstrcpyW
(
szString
,
V_BSTR
(
&
varresult
));
VariantClear
(
&
varresult
);
return
hr
;
}
...
...
@@ -811,7 +811,7 @@ static HRESULT Installer_VersionGet(LPWSTR szVersion)
HRESULT
hr
;
hr
=
invoke
(
pInstaller
,
"Version"
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
varresult
,
VT_BSTR
);
lstrcpyW
(
szVersion
,
V_BSTR
(
&
varresult
));
if
(
V_BSTR
(
&
varresult
))
lstrcpyW
(
szVersion
,
V_BSTR
(
&
varresult
));
VariantClear
(
&
varresult
);
return
hr
;
}
...
...
@@ -839,7 +839,7 @@ static HRESULT Session_PropertyGet(IDispatch *pSession, LPCWSTR szName, LPWSTR s
V_BSTR
(
&
vararg
[
0
])
=
SysAllocString
(
szName
);
hr
=
invoke
(
pSession
,
"Property"
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
varresult
,
VT_BSTR
);
lstrcpyW
(
szReturn
,
V_BSTR
(
&
varresult
));
if
(
V_BSTR
(
&
varresult
))
lstrcpyW
(
szReturn
,
V_BSTR
(
&
varresult
));
VariantClear
(
&
varresult
);
return
hr
;
}
...
...
@@ -1101,7 +1101,7 @@ static HRESULT Record_StringDataGet(IDispatch *pRecord, int iField, LPWSTR szStr
V_I4
(
&
vararg
[
0
])
=
iField
;
hr
=
invoke
(
pRecord
,
"StringData"
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
varresult
,
VT_BSTR
);
lstrcpyW
(
szString
,
V_BSTR
(
&
varresult
));
if
(
V_BSTR
(
&
varresult
))
lstrcpyW
(
szString
,
V_BSTR
(
&
varresult
));
VariantClear
(
&
varresult
);
return
hr
;
}
...
...
@@ -1169,7 +1169,7 @@ static HRESULT StringList_Item(IDispatch *pStringList, int iIndex, LPWSTR szStri
V_I4
(
&
vararg
[
0
])
=
iIndex
;
hr
=
invoke
(
pStringList
,
"Item"
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
varresult
,
VT_BSTR
);
lstrcpyW
(
szString
,
V_BSTR
(
&
varresult
));
if
(
V_BSTR
(
&
varresult
))
lstrcpyW
(
szString
,
V_BSTR
(
&
varresult
));
VariantClear
(
&
varresult
);
return
hr
;
}
...
...
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