Changeset 69963 in vbox
- Timestamp:
- Dec 6, 2017 9:30:46 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r69940 r69963 4948 4948 4949 4949 /** 4950 * Destruct sPVMSVGAR3STATE structure.4950 * Destructor for PVMSVGAR3STATE structure. 4951 4951 * 4952 4952 * @param pThis The VGA instance. 4953 4953 * @param pSVGAState Pointer to the structure. It is not deallocated. 4954 4954 */ 4955 static void vmsvgaR3State Destruct(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState)4955 static void vmsvgaR3StateTerm(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState) 4956 4956 { 4957 4957 #ifndef VMSVGA_USE_EMT_HALT_CODE … … 4982 4982 4983 4983 /** 4984 * Construct sPVMSVGAR3STATE structure.4984 * Constructor for PVMSVGAR3STATE structure. 4985 4985 * 4986 4986 * @returns VBox status code. … … 4988 4988 * @param pSVGAState Pointer to the structure. It is already allocated. 4989 4989 */ 4990 static int vmsvgaR3State Construct(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState)4990 static int vmsvgaR3StateInit(PVGASTATE pThis, PVMSVGAR3STATE pSVGAState) 4991 4991 { 4992 4992 int rc = VINF_SUCCESS; … … 5030 5030 RT_ZERO(pThis->svga.au32ScratchRegion); 5031 5031 5032 vmsvgaR3State Destruct(pThis, pThis->svga.pSvgaR3State);5033 vmsvgaR3State Construct(pThis, pThis->svga.pSvgaR3State);5032 vmsvgaR3StateTerm(pThis, pThis->svga.pSvgaR3State); 5033 vmsvgaR3StateInit(pThis, pThis->svga.pSvgaR3State); 5034 5034 5035 5035 RT_BZERO(pThis->svga.pbVgaFrameBufferR3, VMSVGA_VGA_FB_BACKUP_SIZE); … … 5088 5088 if (pThis->svga.pSvgaR3State) 5089 5089 { 5090 vmsvgaR3State Destruct(pThis, pThis->svga.pSvgaR3State);5090 vmsvgaR3StateTerm(pThis, pThis->svga.pSvgaR3State); 5091 5091 5092 5092 RTMemFree(pThis->svga.pSvgaR3State); … … 5159 5159 AssertReturn(pThis->svga.pSvgaR3State, VERR_NO_MEMORY); 5160 5160 5161 rc = vmsvgaR3State Construct(pThis, pThis->svga.pSvgaR3State);5161 rc = vmsvgaR3StateInit(pThis, pThis->svga.pSvgaR3State); 5162 5162 AssertMsgRCReturn(rc, ("Failed to create pSvgaR3State.\n"), rc); 5163 5163
Note:
See TracChangeset
for help on using the changeset viewer.

