VirtualBox

Changeset 48030 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 23, 2013 1:03:06 PM (11 years ago)
Author:
vboxsync
Message:

Additions/WINNT: uninitialized variable, warnings.

Location:
trunk/src/VBox/Additions/WINNT
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp

    r47234 r48030  
    133133 * @param   phSession               Where to store the IPC session.
    134134 */
    135 static int vboxConnectToVBoxTray(RTLOCALIPCSESSION hSession)
     135static int vboxConnectToVBoxTray(RTLOCALIPCSESSION *phSession)
    136136{
    137137    int rc = VINF_SUCCESS;
     
    153153                            VBOXTRAY_IPC_PIPE_PREFIX, pszUserName))
    154154            {
    155                 rc = RTLocalIpcSessionConnect(&hSession, szPipeName, 0 /* Flags */);
     155                rc = RTLocalIpcSessionConnect(phSession, szPipeName, 0 /* Flags */);
    156156            }
    157157            else
     
    475475            if (SUCCEEDED(hr))
    476476            {
    477                 RTLOCALIPCSESSION hSession;
    478                 int rc = vboxConnectToVBoxTray(hSession);
     477                RTLOCALIPCSESSION hSession = 0;
     478                int rc = vboxConnectToVBoxTray(&hSession);
    479479                if (RT_SUCCESS(rc))
    480480                {
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp

    r46745 r48030  
    535535
    536536            /* Look if the network provider is already in the list. */
    537             int iPos = 0;
     537            unsigned int iPos = 0;
    538538            size_t cb = 0;
    539539
    540540            /* Replace delimiting "\0"'s with "," to make tokenizing work. */
    541             for (int i = 0; i < cbKeyValue / sizeof(TCHAR); i++)
     541            for (unsigned i = 0; i < cbKeyValue / sizeof(TCHAR); i++)
    542542                if (szKeyValue[i] == '\0') szKeyValue[i] = ',';
    543543
     
    636636            int iIndex = 0;
    637637            int iNewIndex = 0;
    638             for (int i = 0; i < cbKeyValue / sizeof(TCHAR); i++)
     638            for (unsigned i = 0; i < cbKeyValue / sizeof(TCHAR); i++)
    639639            {
    640640                if (szKeyValue[i] != _T('\0'))
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp

    r46625 r48030  
    606606              {
    607607                  LogRel(("VBoxTray: (WDDM) Request to enable/disable %d display device\n", fEnabled));
    608                   DWORD dwStatus = vboxDispIfWddmEnableDisplay(&pCtx->pEnv->dispIf, Id, fEnabled);
     608                  DWORD dwStatus = vboxDispIfWddmEnableDisplay(&pCtx->pEnv->dispIf, Id, RT_BOOL(fEnabled));
    609609                  if(dwStatus != ERROR_SUCCESS)
    610610                  {
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