Commit 9299319b authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Remove some dead assignments (clang).

parent 7f199e81
...@@ -1518,11 +1518,9 @@ static LPWSTR get_key_value(MSIQUERY *view, LPCWSTR key, MSIRECORD *rec) ...@@ -1518,11 +1518,9 @@ static LPWSTR get_key_value(MSIQUERY *view, LPCWSTR key, MSIRECORD *rec)
static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view, 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, val;
LPWSTR val; LPCWSTR setptr, key;
LPCWSTR setptr; DWORD size, oldsize;
DWORD size = 1, oldsize;
LPCWSTR key;
MSIRECORD *keys; MSIRECORD *keys;
UINT r, i, count; UINT r, i, count;
...@@ -1538,10 +1536,11 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view, ...@@ -1538,10 +1536,11 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
if (r != ERROR_SUCCESS) if (r != ERROR_SUCCESS)
return NULL; return NULL;
clause = msi_alloc_zero(size * sizeof(WCHAR)); clause = msi_alloc_zero(sizeof(WCHAR));
if (!clause) if (!clause)
goto done; goto done;
size = 1;
count = MSI_RecordGetFieldCount(keys); count = MSI_RecordGetFieldCount(keys);
for (i = 1; i <= count; i++) for (i = 1; i <= count; i++)
{ {
......
...@@ -136,7 +136,6 @@ static WCHAR *load_ttf_name_id( const WCHAR *filename, DWORD id ) ...@@ -136,7 +136,6 @@ static WCHAR *load_ttf_name_id( const WCHAR *filename, DWORD id )
ttNTHeader.uNRCount = SWAPWORD(ttNTHeader.uNRCount); ttNTHeader.uNRCount = SWAPWORD(ttNTHeader.uNRCount);
ttNTHeader.uStorageOffset = SWAPWORD(ttNTHeader.uStorageOffset); ttNTHeader.uStorageOffset = SWAPWORD(ttNTHeader.uStorageOffset);
bFound = FALSE;
for(i=0; i<ttNTHeader.uNRCount; i++) for(i=0; i<ttNTHeader.uNRCount; i++)
{ {
if (!ReadFile(handle,&ttRecord, sizeof(TT_NAME_RECORD),&dwRead,NULL)) if (!ReadFile(handle,&ttRecord, sizeof(TT_NAME_RECORD),&dwRead,NULL))
......
...@@ -833,7 +833,7 @@ UINT MSI_RecordReadStream(MSIRECORD *rec, UINT iField, char *buf, LPDWORD sz) ...@@ -833,7 +833,7 @@ UINT MSI_RecordReadStream(MSIRECORD *rec, UINT iField, char *buf, LPDWORD sz)
ofs.QuadPart = cur.QuadPart = 0; ofs.QuadPart = cur.QuadPart = 0;
end.QuadPart = 0; end.QuadPart = 0;
r = IStream_Seek( stm, ofs, STREAM_SEEK_SET, &cur ); IStream_Seek( stm, ofs, STREAM_SEEK_SET, &cur );
IStream_Seek( stm, ofs, STREAM_SEEK_END, &end ); IStream_Seek( stm, ofs, STREAM_SEEK_END, &end );
ofs.QuadPart = cur.QuadPart; ofs.QuadPart = cur.QuadPart;
IStream_Seek( stm, ofs, STREAM_SEEK_SET, &cur ); IStream_Seek( stm, ofs, STREAM_SEEK_SET, &cur );
......
...@@ -2746,7 +2746,6 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg, ...@@ -2746,7 +2746,6 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
debugstr_w(name), tv->num_cols, tv->row_size, rawsize ); debugstr_w(name), tv->num_cols, tv->row_size, rawsize );
/* interpret the data */ /* interpret the data */
r = ERROR_SUCCESS;
for( n=0; n < rawsize; ) for( n=0; n < rawsize; )
{ {
mask = rawdata[n] | (rawdata[n+1] << 8); mask = rawdata[n] | (rawdata[n+1] << 8);
......
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