VirtualBox

Ignore:
Timestamp:
May 6, 2013 7:28:23 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85524
Message:

VBoxTray/seamless: more corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r45853 r45901  
    10851085        {
    10861086            gVBoxSt.hWTSAPIWnd = hWnd;
    1087             if (!gVBoxSt.pfnWTSRegisterSessionNotification(gVBoxSt.hWTSAPIWnd, NOTIFY_FOR_THIS_SESSION))
     1087            if (gVBoxSt.pfnWTSRegisterSessionNotification(gVBoxSt.hWTSAPIWnd, NOTIFY_FOR_THIS_SESSION))
     1088            {
     1089                vboxStCheckState();
     1090            }
     1091            else
    10881092            {
    10891093                DWORD dwErr = GetLastError();
     
    10931097                    gVBoxSt.idDelayedInitTimer = SetTimer(gVBoxSt.hWTSAPIWnd, TIMERID_VBOXTRAY_ST_DELAYED_INIT_TIMER, 2000, (TIMERPROC)NULL);
    10941098                    rc = VINF_SUCCESS;
     1099
     1100                    gVBoxSt.fIsConsole = TRUE;
     1101                    gVBoxSt.enmConnectState = WTSActive;
    10951102                }
    10961103                else
     
    10991106
    11001107            if (RT_SUCCESS(rc))
    1101             {
    1102                 vboxStCheckState();
    11031108                return VINF_SUCCESS;
    1104             }
    11051109        }
    11061110
     
    11771181        KillTimer(gVBoxSt.hWTSAPIWnd, gVBoxSt.idDelayedInitTimer);
    11781182        gVBoxSt.idDelayedInitTimer = 0;
     1183        vboxStCheckState();
    11791184    }
    11801185    else
     
    11821187        DWORD dwErr = GetLastError();
    11831188        WARN(("VBoxTray: timer WTSRegisterSessionNotification failed, error = %08X\n", dwErr));
    1184     }
    1185 
    1186     vboxStCheckState();
     1189        Assert(gVBoxSt.fIsConsole == TRUE);
     1190        Assert(gVBoxSt.enmConnectState == WTSActive);
     1191    }
     1192
    11871193    return TRUE;
    11881194}
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