From 6ba60f63921dfc369c49bc3800ad62dd028b1ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 11 Oct 2009 10:02:21 +0000 Subject: [PATCH] * Making mountvolume an application broke invocating it without any arguments. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33513 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/mountvolume.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bin/mountvolume.cpp b/src/bin/mountvolume.cpp index 53094ce590..d3c2be3378 100644 --- a/src/bin/mountvolume.cpp +++ b/src/bin/mountvolume.cpp @@ -528,7 +528,13 @@ MountVolume::ArgvReceived(int32 argc, char** argv) void MountVolume::ReadyToRun() { - Quit(); + // We will only get here if we were launched without any arguments or + // startup messages + + extern int __libc_argc; + extern char** __libc_argv; + + ArgvReceived(__libc_argc, __libc_argv); }