ReactOS 0.4.15-dev-5666-gc548b97
cleanup.c File Reference
#include <windows.h>
#include "rosdraw.h"
#include "d3dhal.h"
Include dependency graph for cleanup.c:

Go to the source code of this file.

Functions

VOID Cleanup (LPDDRAWI_DIRECTDRAW_INT This)
 

Function Documentation

◆ Cleanup()

VOID Cleanup ( LPDDRAWI_DIRECTDRAW_INT  This)

Definition at line 15 of file cleanup.c.

16{
18
19 if (ddgbl.lpDDCBtmp != NULL)
20 {
22 }
23
24 if (ddgbl.lpdwFourCC != NULL)
25 {
27 }
28
29 if (ddgbl.lpModeInfo != NULL)
30 {
32 }
33
35
36 /*
37 anything else to release?
38 */
39
40 /* release the linked interface */
41 //while (IsBadWritePtr( This->lpVtbl, sizeof( LPDDRAWI_DIRECTDRAW_INT )) )
42 //{
43 // LPDDRAWI_DIRECTDRAW_INT newThis = This->lpVtbl;
44 // if (This->lpLcl != NULL)
45 // {
46 // DeleteDC(This->lpLcl->hDC);
47 // DxHeapMemFree(This->lpLcl);
48 // }
49
50 // DxHeapMemFree(This);
51 // This = newThis;
52 //}
53
54 /* release unlinked interface */
55 if (This->lpLcl != NULL)
56 {
57 DxHeapMemFree(This->lpLcl);
58 }
59 //if (This != NULL)
60 //{
61 // DxHeapMemFree(This);
62 //}
63
64}
#define DdDeleteDirectDrawObject
Definition: ddrawgdi.h:26
#define NULL
Definition: types.h:112
DDRAWI_DIRECTDRAW_GBL ddgbl
Definition: startup.c:12
#define DxHeapMemFree(p)
Definition: rosdraw.h:120
#define DX_WINDBG_trace()
Definition: rosdraw.h:262
LPDDHALMODEINFO lpModeInfo
Definition: ddrawi.h:1244
LPDDHAL_CALLBACKS lpDDCBtmp
Definition: ddrawi.h:1224