Misha Koshelev : msi/tests: automation: Change non-const LPCWSTR parameters to LPWSTR.

Alexandre Julliard julliard at wine.codeweavers.com
Fri May 18 08:04:02 CDT 2007


Module: wine
Branch: master
Commit: f1f687e646f022a484d9bccc50873cbaf3ab446d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f1f687e646f022a484d9bccc50873cbaf3ab446d

Author: Misha Koshelev <mk144210 at bcm.edu>
Date:   Thu May 17 11:35:43 2007 -0500

msi/tests: automation: Change non-const LPCWSTR parameters to LPWSTR.

---

 dlls/msi/tests/automation.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c
index fb353a5..aa92b05 100644
--- a/dlls/msi/tests/automation.c
+++ b/dlls/msi/tests/automation.c
@@ -804,14 +804,14 @@ static HRESULT Installer_RelatedProducts(LPCWSTR szProduct, IDispatch **pStringL
     return hr;
 }
 
-static HRESULT Installer_VersionGet(LPCWSTR szVersion)
+static HRESULT Installer_VersionGet(LPWSTR szVersion)
 {
     VARIANT varresult;
     DISPPARAMS dispparams = {NULL, NULL, 0, 0};
     HRESULT hr;
 
     hr = invoke(pInstaller, "Version", DISPATCH_PROPERTYGET, &dispparams, &varresult, VT_BSTR);
-    lstrcpyW((WCHAR *)szVersion, V_BSTR(&varresult));
+    lstrcpyW(szVersion, V_BSTR(&varresult));
     VariantClear(&varresult);
     return hr;
 }
@@ -827,7 +827,7 @@ static HRESULT Session_Installer(IDispatch *pSession, IDispatch **pInst)
     return hr;
 }
 
-static HRESULT Session_PropertyGet(IDispatch *pSession, LPCWSTR szName, LPCWSTR szReturn)
+static HRESULT Session_PropertyGet(IDispatch *pSession, LPCWSTR szName, LPWSTR szReturn)
 {
     VARIANT varresult;
     VARIANTARG vararg[1];
@@ -839,7 +839,7 @@ static HRESULT Session_PropertyGet(IDispatch *pSession, LPCWSTR szName, LPCWSTR
     V_BSTR(&vararg[0]) = SysAllocString(szName);
 
     hr = invoke(pSession, "Property", DISPATCH_PROPERTYGET, &dispparams, &varresult, VT_BSTR);
-    lstrcpyW((WCHAR *)szReturn, V_BSTR(&varresult));
+    lstrcpyW(szReturn, V_BSTR(&varresult));
     VariantClear(&varresult);
     return hr;
 }
@@ -1089,7 +1089,7 @@ static HRESULT Record_FieldCountGet(IDispatch *pRecord, int *pFieldCount)
     return hr;
 }
 
-static HRESULT Record_StringDataGet(IDispatch *pRecord, int iField, LPCWSTR szString)
+static HRESULT Record_StringDataGet(IDispatch *pRecord, int iField, LPWSTR szString)
 {
     VARIANT varresult;
     VARIANTARG vararg[1];
@@ -1101,7 +1101,7 @@ static HRESULT Record_StringDataGet(IDispatch *pRecord, int iField, LPCWSTR szSt
     V_I4(&vararg[0]) = iField;
 
     hr = invoke(pRecord, "StringData", DISPATCH_PROPERTYGET, &dispparams, &varresult, VT_BSTR);
-    lstrcpyW((WCHAR *)szString, V_BSTR(&varresult));
+    lstrcpyW(szString, V_BSTR(&varresult));
     VariantClear(&varresult);
     return hr;
 }




More information about the wine-cvs mailing list