mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:05:42 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
65
dll/directx/ddraw/cleanup.c
Normal file
65
dll/directx/ddraw/cleanup.c
Normal file
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: dll/directx/ddraw/cleanup.c
|
||||
* PURPOSE: DirectDraw Library
|
||||
* PROGRAMMER: Magnus Olsen (greatlrd)
|
||||
*
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include "rosdraw.h"
|
||||
#include "d3dhal.h"
|
||||
|
||||
VOID
|
||||
Cleanup(LPDDRAWI_DIRECTDRAW_INT This)
|
||||
{
|
||||
DX_WINDBG_trace();
|
||||
|
||||
if (ddgbl.lpDDCBtmp != NULL)
|
||||
{
|
||||
DxHeapMemFree(ddgbl.lpDDCBtmp);
|
||||
}
|
||||
|
||||
if (ddgbl.lpdwFourCC != NULL)
|
||||
{
|
||||
DxHeapMemFree(ddgbl.lpdwFourCC);
|
||||
}
|
||||
|
||||
if (ddgbl.lpModeInfo != NULL)
|
||||
{
|
||||
DxHeapMemFree(ddgbl.lpModeInfo);
|
||||
}
|
||||
|
||||
DdDeleteDirectDrawObject(&ddgbl);
|
||||
|
||||
/*
|
||||
anything else to release?
|
||||
*/
|
||||
|
||||
/* release the linked interface */
|
||||
//while (IsBadWritePtr( This->lpVtbl, sizeof( LPDDRAWI_DIRECTDRAW_INT )) )
|
||||
//{
|
||||
// LPDDRAWI_DIRECTDRAW_INT newThis = This->lpVtbl;
|
||||
// if (This->lpLcl != NULL)
|
||||
// {
|
||||
// DeleteDC(This->lpLcl->hDC);
|
||||
// DxHeapMemFree(This->lpLcl);
|
||||
// }
|
||||
|
||||
// DxHeapMemFree(This);
|
||||
// This = newThis;
|
||||
//}
|
||||
|
||||
/* release unlinked interface */
|
||||
if (This->lpLcl != NULL)
|
||||
{
|
||||
DxHeapMemFree(This->lpLcl);
|
||||
}
|
||||
//if (This != NULL)
|
||||
//{
|
||||
// DxHeapMemFree(This);
|
||||
//}
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue