char *arg; if ( NS_SUCCEEDED( args->GetURLToLoad( &arg ) ) && arg ) {
nsXPIDLCString arg; if (NS_SUCCEEDED(args->GetURLToLoad(getter_Copies(arg) ) ) && (const char*)arg ) {
nsNativeAppSupportWin::HandleRequest( LPBYTE request ) {    // Parse command line.    nsCOMPtr<nsICmdLineService> args;    nsresult rv = GetCmdLineArgs( request, getter_AddRefs( args ) );    if ( NS_SUCCEEDED( rv ) ) {        char *arg;        if ( NS_SUCCEEDED( args->GetURLToLoad( &arg ) ) && arg ) {            // Launch browser.            #if MOZ_DEBUG_DDE            printf( "Launching browser on url [%s]...\n", arg );            #endif            (void)OpenWindow( "chrome://navigator/content/", arg );        } else if ( NS_SUCCEEDED( args->GetCmdLineValue( "-chrome", &arg ) ) && arg ) {            // Launch chrome.            #if MOZ_DEBUG_DDE            printf( "Launching chrome url [%s]...\n", arg );            #endif            (void)OpenWindow( arg, "" );        } else if ( NS_SUCCEEDED( args->GetCmdLineValue( "-edit", &arg ) ) && arg ) {            // Launch composer.            #if MOZ_DEBUG_DDE            printf( "Launching editor on url [%s]...\n", arg );            #endif            (void)OpenWindow( "chrome://editor/content/", arg );        } else if ( NS_SUCCEEDED( args->GetCmdLineValue( "-mail", &arg ) ) && arg ) {            // Launch composer.            #if MOZ_DEBUG_DDE            printf( "Launching mail...\n" );            #endif            (void)OpenWindow( "chrome://messenger/content/", "" );        } else {            #if MOZ_DEBUG_DDE            printf( "Unknown request [%s]\n", (char*) request );            #endif        }        }}