From a77de3ebafdff18fa612e2a68de030148cff91ed Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Sun, 3 Aug 2003 09:58:56 +0000 Subject: [PATCH] Bug 213543 In function `nsresult Register(const char *)': warning: return of negative value `-1' to `nsresult' warning: negative integer implicitly converted to unsigned type r=dougt git-svn-id: svn://10.0.0.236/trunk@145512 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/tools/registry/regxpcom.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/xpcom/tools/registry/regxpcom.cpp b/mozilla/xpcom/tools/registry/regxpcom.cpp index c8d244892c6..0c8f61ffd03 100644 --- a/mozilla/xpcom/tools/registry/regxpcom.cpp +++ b/mozilla/xpcom/tools/registry/regxpcom.cpp @@ -211,7 +211,7 @@ nsresult Register(const char *path) rv = NS_GetComponentRegistrar(getter_AddRefs(registrar)); if (NS_FAILED(rv)) { printf("Can not aquire component registrar\n"); - return -1; + return rv; } if (gUnreg) @@ -395,8 +395,8 @@ int main(int argc, char *argv[]) ret = (NS_FAILED(rv)) ? -1 : 0; registrar = 0; shutdown_xpcom(); - return ret; - } - - return ProcessArgs(argc, argv); + } else + ret = ProcessArgs(argc, argv); + + return ret; }