VirtualBox

Ticket #19357: VirtualBox-6.1.4-VBoxClient-vmsvga-x11-crash.patch

File VirtualBox-6.1.4-VBoxClient-vmsvga-x11-crash.patch, 1.0 KB (added by hansg, 5 years ago)

Patch fixing the crash

  • VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp

    diff -up VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp~ VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
    old new static void x11Connect(struct X11CONTEXT  
    100100    {
    101101        XCloseDisplay(pContext->pDisplay);
    102102        pContext->pDisplay = NULL;
     103        return;
    103104    }
    104105    if (!XRRQueryExtension(pContext->pDisplay, &pContext->hRandREventBase, &pContext->hRandRErrorBase))
    105106    {
    106107        XCloseDisplay(pContext->pDisplay);
    107108        pContext->pDisplay = NULL;
     109        return;
    108110    }
    109111    if (!XRRQueryVersion(pContext->pDisplay, &pContext->hRandRMajor, &pContext->hRandRMinor))
    110112    {
    111113        XCloseDisplay(pContext->pDisplay);
    112114        pContext->pDisplay = NULL;
     115        return;
    113116    }
    114117    pContext->rootWindow = DefaultRootWindow(pContext->pDisplay);
    115118}

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