msi: Remove some dead assignments (clang).
This commit is contained in:
parent
7f199e81e1
commit
9299319b88
|
@ -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,
|
||||
LPWSTR table, MSIRECORD *rec)
|
||||
{
|
||||
LPWSTR query = NULL, clause = NULL;
|
||||
LPWSTR val;
|
||||
LPCWSTR setptr;
|
||||
DWORD size = 1, oldsize;
|
||||
LPCWSTR key;
|
||||
LPWSTR query = NULL, clause = NULL, val;
|
||||
LPCWSTR setptr, key;
|
||||
DWORD size, oldsize;
|
||||
MSIRECORD *keys;
|
||||
UINT r, i, count;
|
||||
|
||||
|
@ -1538,10 +1536,11 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
|
|||
if (r != ERROR_SUCCESS)
|
||||
return NULL;
|
||||
|
||||
clause = msi_alloc_zero(size * sizeof(WCHAR));
|
||||
clause = msi_alloc_zero(sizeof(WCHAR));
|
||||
if (!clause)
|
||||
goto done;
|
||||
|
||||
size = 1;
|
||||
count = MSI_RecordGetFieldCount(keys);
|
||||
for (i = 1; i <= count; i++)
|
||||
{
|
||||
|
|
|
@ -136,7 +136,6 @@ static WCHAR *load_ttf_name_id( const WCHAR *filename, DWORD id )
|
|||
|
||||
ttNTHeader.uNRCount = SWAPWORD(ttNTHeader.uNRCount);
|
||||
ttNTHeader.uStorageOffset = SWAPWORD(ttNTHeader.uStorageOffset);
|
||||
bFound = FALSE;
|
||||
for(i=0; i<ttNTHeader.uNRCount; i++)
|
||||
{
|
||||
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)
|
|||
|
||||
ofs.QuadPart = cur.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 );
|
||||
ofs.QuadPart = cur.QuadPart;
|
||||
IStream_Seek( stm, ofs, STREAM_SEEK_SET, &cur );
|
||||
|
|
|
@ -2746,7 +2746,6 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
|
|||
debugstr_w(name), tv->num_cols, tv->row_size, rawsize );
|
||||
|
||||
/* interpret the data */
|
||||
r = ERROR_SUCCESS;
|
||||
for( n=0; n < rawsize; )
|
||||
{
|
||||
mask = rawdata[n] | (rawdata[n+1] << 8);
|
||||
|
|
Loading…
Reference in New Issue