VirtualBox

Changeset 22490 in vbox


Ignore:
Timestamp:
Aug 26, 2009 9:03:00 PM (15 years ago)
Author:
vboxsync
Message:

VBoxSDL.cpp: Fixed RC mixup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r22305 r22490  
    849849
    850850    HRESULT rc;
     851    int vrc;
    851852    Guid uuid;
    852853    char *vmName = NULL;
     
    14851486
    14861487    /* create SDL event semaphore */
    1487     rc = RTSemEventCreate(&g_EventSemSDLEvents);
    1488     AssertReleaseRC(rc);
     1488    vrc = RTSemEventCreate(&g_EventSemSDLEvents);
     1489    AssertReleaseRC(vrc);
    14891490
    14901491    rc = virtualBox->OpenSession(session, uuid.toUtf16());
     
    18071808        }
    18081809        /* load the SDL_ttf library and get the required imports */
    1809         int rcVBox;
    1810         rcVBox = RTLdrLoad(LIBSDL_TTF_NAME, &gLibrarySDL_ttf);
    1811         if (RT_SUCCESS(rcVBox))
    1812             rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Init", (void**)&pTTF_Init);
    1813         if (RT_SUCCESS(rcVBox))
    1814             rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_OpenFont", (void**)&pTTF_OpenFont);
    1815         if (RT_SUCCESS(rcVBox))
    1816             rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Solid", (void**)&pTTF_RenderUTF8_Solid);
    1817         if (RT_SUCCESS(rcVBox))
     1810        vrc = RTLdrLoad(LIBSDL_TTF_NAME, &gLibrarySDL_ttf);
     1811        if (RT_SUCCESS(vrc))
     1812            vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Init", (void**)&pTTF_Init);
     1813        if (RT_SUCCESS(vrc))
     1814            vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_OpenFont", (void**)&pTTF_OpenFont);
     1815        if (RT_SUCCESS(vrc))
     1816            vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Solid", (void**)&pTTF_RenderUTF8_Solid);
     1817        if (RT_SUCCESS(vrc))
    18181818        {
    18191819            /* silently ignore errors here */
    1820             rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Blended", (void**)&pTTF_RenderUTF8_Blended);
    1821             if (RT_FAILURE(rcVBox))
     1820            vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_RenderUTF8_Blended", (void**)&pTTF_RenderUTF8_Blended);
     1821            if (RT_FAILURE(vrc))
    18221822                pTTF_RenderUTF8_Blended = NULL;
    1823             rcVBox = VINF_SUCCESS;
    1824         }
    1825         if (RT_SUCCESS(rcVBox))
    1826             rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_CloseFont", (void**)&pTTF_CloseFont);
    1827         if (RT_SUCCESS(rcVBox))
    1828             rcVBox = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Quit", (void**)&pTTF_Quit);
    1829         if (RT_SUCCESS(rcVBox))
    1830             rcVBox = gpFramebuffer[0]->initSecureLabel(SECURE_LABEL_HEIGHT, secureLabelFontFile, secureLabelPointSize, secureLabelFontOffs);
    1831         if (RT_FAILURE(rcVBox))
    1832         {
    1833             RTPrintf("Error: could not initialize secure labeling: rc = %Rrc\n", rcVBox);
     1823            vrc = VINF_SUCCESS;
     1824        }
     1825        if (RT_SUCCESS(vrc))
     1826            vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_CloseFont", (void**)&pTTF_CloseFont);
     1827        if (RT_SUCCESS(vrc))
     1828            vrc = RTLdrGetSymbol(gLibrarySDL_ttf, "TTF_Quit", (void**)&pTTF_Quit);
     1829        if (RT_SUCCESS(vrc))
     1830            vrc = gpFramebuffer[0]->initSecureLabel(SECURE_LABEL_HEIGHT, secureLabelFontFile, secureLabelPointSize, secureLabelFontOffs);
     1831        if (RT_FAILURE(vrc))
     1832        {
     1833            RTPrintf("Error: could not initialize secure labeling: rc = %Rrc\n", vrc);
    18341834            goto leave;
    18351835        }
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