Commit e52e5e67 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent d43758b2
......@@ -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);
......
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