Commit 17c745a9 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msi: Use a string literal for empty strings.

parent 21839185
...@@ -1269,7 +1269,7 @@ static UINT load_folder_persistence( MSIPACKAGE *package, MSIFOLDER *folder ) ...@@ -1269,7 +1269,7 @@ static UINT load_folder_persistence( MSIPACKAGE *package, MSIFOLDER *folder )
static UINT load_folder( MSIRECORD *row, LPVOID param ) static UINT load_folder( MSIRECORD *row, LPVOID param )
{ {
MSIPACKAGE *package = param; MSIPACKAGE *package = param;
static WCHAR szEmpty[] = {0}; static WCHAR szEmpty[] = L"";
LPWSTR p, tgt_short, tgt_long, src_short, src_long; LPWSTR p, tgt_short, tgt_long, src_short, src_long;
MSIFOLDER *folder; MSIFOLDER *folder;
...@@ -5240,14 +5240,14 @@ static UINT ACTION_RegisterUser(MSIPACKAGE *package) ...@@ -5240,14 +5240,14 @@ static UINT ACTION_RegisterUser(MSIPACKAGE *package)
L"ProductID", L"ProductID",
L"USERNAME", L"USERNAME",
L"COMPANYNAME", L"COMPANYNAME",
{0}, L"",
}; };
static const WCHAR szRegKeys[][80] = static const WCHAR szRegKeys[][80] =
{ {
L"ProductID", L"ProductID",
L"RegOwner", L"RegOwner",
L"RegCompany", L"RegCompany",
{0}, L"",
}; };
HKEY hkey = 0; HKEY hkey = 0;
LPWSTR buffer, productid = NULL; LPWSTR buffer, productid = NULL;
......
...@@ -781,7 +781,7 @@ static HRESULT summaryinfo_invoke( ...@@ -781,7 +781,7 @@ static HRESULT summaryinfo_invoke(
DATE date; DATE date;
LPWSTR str; LPWSTR str;
static WCHAR szEmpty[] = {0}; static WCHAR szEmpty[] = L"";
hr = DispGetParam(pDispParams, 0, VT_I4, &varg0, puArgErr); hr = DispGetParam(pDispParams, 0, VT_I4, &varg0, puArgErr);
if (FAILED(hr)) return hr; if (FAILED(hr)) return hr;
......
...@@ -324,7 +324,7 @@ static UINT get_patch_product_codes( LPCWSTR szPatchPackage, WCHAR ***product_co ...@@ -324,7 +324,7 @@ static UINT get_patch_product_codes( LPCWSTR szPatchPackage, WCHAR ***product_co
MSIHANDLE patch, info = 0; MSIHANDLE patch, info = 0;
UINT r, type; UINT r, type;
DWORD size; DWORD size;
static WCHAR empty[] = {0}; static WCHAR empty[] = L"";
WCHAR *codes = NULL; WCHAR *codes = NULL;
r = MsiOpenDatabaseW( szPatchPackage, MSIDBOPEN_READONLY, &patch ); r = MsiOpenDatabaseW( szPatchPackage, MSIDBOPEN_READONLY, &patch );
...@@ -1096,7 +1096,7 @@ static WCHAR *reg_get_value( HKEY hkey, const WCHAR *name, DWORD *type ) ...@@ -1096,7 +1096,7 @@ static WCHAR *reg_get_value( HKEY hkey, const WCHAR *name, DWORD *type )
static UINT MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute, static UINT MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
awstring *szValue, LPDWORD pcchValueBuf) awstring *szValue, LPDWORD pcchValueBuf)
{ {
static WCHAR empty[] = {0}; static WCHAR empty[] = L"";
MSIINSTALLCONTEXT context = MSIINSTALLCONTEXT_USERUNMANAGED; MSIINSTALLCONTEXT context = MSIINSTALLCONTEXT_USERUNMANAGED;
UINT r = ERROR_UNKNOWN_PROPERTY; UINT r = ERROR_UNKNOWN_PROPERTY;
HKEY prodkey, userdata, source; HKEY prodkey, userdata, source;
......
...@@ -585,7 +585,7 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid, ...@@ -585,7 +585,7 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
0, 0, NULL, &size); 0, 0, NULL, &size);
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
{ {
static WCHAR szEmpty[] = {0}; static WCHAR szEmpty[] = L"";
rc = ERROR_SUCCESS; rc = ERROR_SUCCESS;
source = NULL; source = NULL;
ptr = szEmpty; ptr = szEmpty;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment