ReactOS
0.4.16-dev-555-g690643f
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
cleanup.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS kernel
4
* FILE: dll/directx/ddraw/cleanup.c
5
* PURPOSE: DirectDraw Library
6
* PROGRAMMER: Magnus Olsen (greatlrd)
7
*
8
*/
9
10
#include <windows.h>
11
#include "
rosdraw.h
"
12
#include "
d3dhal.h
"
13
14
VOID
15
Cleanup
(
LPDDRAWI_DIRECTDRAW_INT
This
)
16
{
17
DX_WINDBG_trace
();
18
19
if
(
ddgbl
.
lpDDCBtmp
!=
NULL
)
20
{
21
DxHeapMemFree
(
ddgbl
.
lpDDCBtmp
);
22
}
23
24
if
(
ddgbl
.
lpdwFourCC
!=
NULL
)
25
{
26
DxHeapMemFree
(
ddgbl
.
lpdwFourCC
);
27
}
28
29
if
(
ddgbl
.
lpModeInfo
!=
NULL
)
30
{
31
DxHeapMemFree
(
ddgbl
.
lpModeInfo
);
32
}
33
34
DdDeleteDirectDrawObject
(&
ddgbl
);
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
}
65
d3dhal.h
DdDeleteDirectDrawObject
#define DdDeleteDirectDrawObject
Definition:
ddrawgdi.h:26
NULL
#define NULL
Definition:
types.h:112
Cleanup
static const WCHAR Cleanup[]
Definition:
register.c:80
void
Definition:
nsiface.idl:2307
This
rosdraw.h
ddgbl
DDRAWI_DIRECTDRAW_GBL ddgbl
Definition:
startup.c:12
DxHeapMemFree
#define DxHeapMemFree(p)
Definition:
rosdraw.h:120
DX_WINDBG_trace
#define DX_WINDBG_trace()
Definition:
rosdraw.h:262
_DDRAWI_DIRECTDRAW_GBL::lpModeInfo
LPDDHALMODEINFO lpModeInfo
Definition:
ddrawi.h:1244
_DDRAWI_DIRECTDRAW_GBL::lpdwFourCC
LPDWORD lpdwFourCC
Definition:
ddrawi.h:1242
_DDRAWI_DIRECTDRAW_GBL::lpDDCBtmp
LPDDHAL_CALLBACKS lpDDCBtmp
Definition:
ddrawi.h:1224
_DDRAWI_DIRECTDRAW_INT
Definition:
ddrawi.h:1146
dll
directx
ddraw
cleanup.c
Generated on Tue Jan 21 2025 06:02:57 for ReactOS by
1.9.6