mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
bb1984e6bd
Moved implementation of MPR to dlls/mpr/. Added proper headers and stubs for missing MPR routines.
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
/*
|
|
* MPR undocumented functions
|
|
*/
|
|
|
|
#include "winbase.h"
|
|
#include "winnetwk.h"
|
|
#include "heap.h"
|
|
#include "debugtools.h"
|
|
|
|
DEFAULT_DEBUG_CHANNEL(mpr)
|
|
|
|
/*
|
|
* FIXME: The following routines should use a private heap ...
|
|
*/
|
|
|
|
/*****************************************************************
|
|
* MPR_Alloc [MPR.22]
|
|
*/
|
|
LPVOID WINAPI MPR_Alloc( DWORD dwSize )
|
|
{
|
|
return HeapAlloc( SystemHeap, HEAP_ZERO_MEMORY, dwSize );
|
|
}
|
|
|
|
/*****************************************************************
|
|
* MPR_ReAlloc [MPR.23]
|
|
*/
|
|
LPVOID WINAPI MPR_ReAlloc( LPVOID lpSrc, DWORD dwSize )
|
|
{
|
|
if ( lpSrc )
|
|
return HeapReAlloc( SystemHeap, HEAP_ZERO_MEMORY, lpSrc, dwSize );
|
|
else
|
|
return HeapAlloc( SystemHeap, HEAP_ZERO_MEMORY, dwSize );
|
|
}
|
|
|
|
/*****************************************************************
|
|
* MPR_Free [MPR.24]
|
|
*/
|
|
BOOL WINAPI MPR_Free( LPVOID lpMem )
|
|
{
|
|
if ( lpMem )
|
|
return HeapFree( SystemHeap, 0, lpMem );
|
|
else
|
|
return FALSE;
|
|
}
|
|
|
|
/*****************************************************************
|
|
* [MPR.25]
|
|
*/
|
|
BOOL WINAPI _MPR_25( LPBYTE lpMem, INT len )
|
|
{
|
|
FIXME( "(%p, %d): stub\n", lpMem, len );
|
|
|
|
return FALSE;
|
|
}
|
|
|