VirtualBox

Changeset 27963 in vbox for trunk/src


Ignore:
Timestamp:
Apr 2, 2010 5:13:34 PM (15 years ago)
Author:
vboxsync
Message:

VBoxHeadless/VNC: Fixed two heap bugs in the password list construction. Converted pthread -> iprt. Fixed initialization order warnings.

Location:
trunk/src/VBox/Frontends/VBoxHeadless
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk

    r27962 r27963  
    6363 VBoxHeadless_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxHeadless.dylib
    6464endif
    65 ifdef VBOX_WITH_VNC
     65ifdef VBOX_WITH_VNC                     # (GPL only)
    6666 VBoxHeadless_DEFS     += VBOX_WITH_VNC
    6767 VBoxHeadless_SOURCES  += FramebufferVNC.cpp
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r27962 r27963  
    533533             "   -s, -startvm, --startvm <name|uuid>   Start given VM (required argument)\n"
    534534#ifdef VBOX_WITH_VNC
    535              "   -n, -vnc                              Enable the built in VNC server\n"
    536              "   -m, -vncport                          TCP port number to use for the VNC server\n"
    537              "   -o, -vncpass <pw>                     Set the VNC server password\n"
     535             "   -n, --vnc                             Enable the built in VNC server\n"
     536             "   -m, --vncport <port>                  TCP port number to use for the VNC server\n"
     537             "   -o, --vncpass <pw>                    Set the VNC server password\n"
    538538#endif
    539539#ifdef VBOX_WITH_VRDP
     
    616616    bool        fVNCEnable      = false;
    617617    unsigned    uVNCPort        = 0;          /* default port */
    618     char       *pszVNCPassword  = NULL;       /* no password */
     618    char const *pszVNCPassword  = NULL;       /* no password */
    619619#endif
    620620    unsigned fRawR0 = ~0U;
     
    676676#endif /* VBOX_WITH_VRDP defined */
    677677#ifdef VBOX_WITH_VNC
    678         { "-vncport", 'm', RTGETOPT_REQ_INT32 },
    679         { "-vncpass", 'o', RTGETOPT_REQ_STRING },
    680         { "-vnc", 'n', 0 },
     678        { "--vncport", 'm', RTGETOPT_REQ_INT32 },
     679        { "--vncpass", 'o', RTGETOPT_REQ_STRING },
     680        { "--vnc", 'n', 0 },
    681681#endif /* VBOX_WITH_VNC */
    682682        { "-rawr0", OPT_RAW_R0, 0 },
     
    742742                break;
    743743            case 'o':
    744                 pszVNCPassword = (char*)ValueUnion.psz;
     744                pszVNCPassword = ValueUnion.psz;
    745745                break;
    746746#endif /* VBOX_WITH_VNC */
     
    965965        if (fVNCEnable)
    966966        {
    967             VNCFB           *pFramebufferVNC;
    968 
    969             pFramebufferVNC = new VNCFB(console, uVNCPort, pszVNCPassword);
     967            VNCFB *pFramebufferVNC = new VNCFB(console, uVNCPort, pszVNCPassword);
    970968            rc = pFramebufferVNC->init();
    971969            if (rc != S_OK)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette