fusion: Explicitly check for -1 for a missing table.

This commit is contained in:
James Hawkins 2008-04-16 11:48:31 -05:00 committed by Alexandre Julliard
parent d43758b274
commit e52e5e6715
1 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ HRESULT assembly_get_name(ASSEMBLY *assembly, LPSTR *name)
ULONG offset;
offset = assembly->tables[0x20].offset; /* FIXME: add constants */
if (offset < 0)
if (offset == -1)
return E_FAIL;
asmtbl = (ASSEMBLYTABLE *)assembly_data_offset(assembly, offset);
@ -527,7 +527,7 @@ HRESULT assembly_get_pubkey_token(ASSEMBLY *assembly, LPSTR *token)
*token = NULL;
offset = assembly->tables[0x20].offset; /* FIXME: add constants */
if (offset < 0)
if (offset == -1)
return E_FAIL;
asmtbl = (ASSEMBLYTABLE *)assembly_data_offset(assembly, offset);