Commit 99e422c9 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

msi: Remove dead assignment (Clang).

parent 09eec46d
...@@ -1519,7 +1519,7 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view, ...@@ -1519,7 +1519,7 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
LPWSTR table, MSIRECORD *rec) LPWSTR table, MSIRECORD *rec)
{ {
LPWSTR query = NULL, clause = NULL; LPWSTR query = NULL, clause = NULL;
LPWSTR ptr = NULL, val; LPWSTR val;
LPCWSTR setptr; LPCWSTR setptr;
DWORD size = 1, oldsize; DWORD size = 1, oldsize;
LPCWSTR key; LPCWSTR key;
...@@ -1542,7 +1542,6 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view, ...@@ -1542,7 +1542,6 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
if (!clause) if (!clause)
goto done; goto done;
ptr = clause;
count = MSI_RecordGetFieldCount(keys); count = MSI_RecordGetFieldCount(keys);
for (i = 1; i <= count; i++) for (i = 1; i <= count; i++)
{ {
...@@ -1563,8 +1562,7 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view, ...@@ -1563,8 +1562,7 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
goto done; goto done;
} }
ptr = clause + oldsize - 1; sprintfW(clause + oldsize - 1, setptr, key, val);
sprintfW(ptr, setptr, key, val);
msi_free(val); msi_free(val);
} }
......
...@@ -1769,7 +1769,6 @@ static UINT msi_check_product_patches(LPCWSTR prodcode, LPCWSTR usersid, ...@@ -1769,7 +1769,6 @@ static UINT msi_check_product_patches(LPCWSTR prodcode, LPCWSTR usersid,
if (res != ERROR_SUCCESS) if (res != ERROR_SUCCESS)
goto done; goto done;
ptr = patches;
for (ptr = patches; *ptr && r == ERROR_NO_MORE_ITEMS; ptr += lstrlenW(ptr) + 1) for (ptr = patches; *ptr && r == ERROR_NO_MORE_ITEMS; ptr += lstrlenW(ptr) + 1)
{ {
if (!unsquash_guid(ptr, patch)) if (!unsquash_guid(ptr, patch))
......
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