[gnome-web-photo] Returns rv, not FALSE
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-web-photo] Returns rv, not FALSE
- Date: Fri, 12 Jun 2009 09:00:50 -0400 (EDT)
commit 4bb1e67e0860897c1a90a7146d70291d5798331b
Author: Christian Persch <chpe gnome org>
Date: Fri Jun 12 14:57:12 2009 +0200
Returns rv, not FALSE
Fixes a bug where the glue startup failed, but returning FALSE (which is
== NS_OK) meant that we continued to startup g-w-p, instead of exiting.
src/main.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/main.cpp b/src/main.cpp
index 9d52720..1aac82c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -348,7 +348,7 @@ gecko_startup (void)
if (NS_FAILED (rv))
{
g_warning ("Could not get gre path!\n");
- return FALSE;
+ return rv;
}
// Startup the XPCOM Glue that links us up with XPCOM.
@@ -356,21 +356,21 @@ gecko_startup (void)
if (NS_FAILED (rv))
{
g_warning ("Could not determine locale!\n");
- return FALSE;
+ return rv;
}
rv = GTKEmbedGlueStartup();
if (NS_FAILED (rv))
{
g_warning ("Could not startup glue!\n");
- return FALSE;
+ return rv;
}
rv = GTKEmbedGlueStartupInternal();
if (NS_FAILED (rv))
{
g_warning ("Could not startup internal glue!\n");
- return FALSE;
+ return rv;
}
char *lastSlash = strrchr(xpcomLocation, '/');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]