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

Alexandre Julliard julliard at winehq.org
Thu Apr 17 07:38:43 CDT 2008


Module: wine
Branch: master
Commit: e52e5e67159753cdc0c5abfa409f71c0710dab47
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e52e5e67159753cdc0c5abfa409f71c0710dab47

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Wed Apr 16 11:48:31 2008 -0500

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

---

 dlls/fusion/assembly.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/fusion/assembly.c b/dlls/fusion/assembly.c
index 024e611..eee889a 100644
--- a/dlls/fusion/assembly.c
+++ b/dlls/fusion/assembly.c
@@ -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);




More information about the wine-cvs mailing list