VirtualBox

Changeset 72354 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 26, 2018 1:19:07 PM (7 years ago)
Author:
vboxsync
Message:

Main, VMMDev: implemented IDisplay::SetScreenLayout, VMMDev multimonitor resize request and VBoxManage controlvm setscreenlayout (attempt to fix linux additions build). bugref:8393

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibVideo.cpp

    r72352 r72354  
    3434#include <VBox/HostServices/GuestPropertySvc.h>  /* For Save and RetrieveVideoMode */
    3535#include <iprt/assert.h>
    36 #if !defined(VBOX_VBGLR3_XFREE86) && !defined(VBOX_VBGLR3_XORG)
    37 # include <iprt/mem.h>
    38 #endif
     36#include <iprt/mem.h>
    3937#include <iprt/string.h>
    4038
     
    305303    cbDisplays = cDisplaysIn * sizeof(VMMDevDisplayDef);
    306304    cbAlloc = RT_UOFFSETOF(VMMDevDisplayChangeRequestMulti, aDisplays) + cbDisplays;
    307     pReq = (VMMDevDisplayChangeRequestMulti *)RTMemAllocZ(cbAlloc);
     305    pReq = (VMMDevDisplayChangeRequestMulti *)RTMemTmpAlloc(cbAlloc);
    308306    AssertPtrReturn(pReq, VERR_NO_MEMORY);
    309307
     308    memset(pReq, 0, cbAlloc);
    310309    rc = vmmdevInitRequest(&pReq->header, VMMDevReq_GetDisplayChangeRequestMulti);
    311     AssertRCReturnStmt(rc, RTMemFree(pReq), rc);
     310    AssertRCReturnStmt(rc, RTMemTmpFree(pReq), rc);
    312311
    313312    pReq->header.size += (uint32_t)cbDisplays;
     
    317316
    318317    rc = vbglR3GRPerform(&pReq->header);
    319     AssertRCReturnStmt(rc, RTMemFree(pReq), rc);
     318    AssertRCReturnStmt(rc, RTMemTmpFree(pReq), rc);
    320319
    321320    rc = pReq->header.rc;
     
    326325    }
    327326
    328     RTMemFree(pReq);
     327    RTMemTmpFree(pReq);
    329328    return rc;
    330329}
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