NT4/private/ole32/stg/docfile/tests/based.cxx
2020-09-30 17:12:29 +02:00

25 lines
379 B
C++

#include <stdio.h>
#pragma hdrstop
void *pvBase;
#define BASE_BASED __based(pvBase)
void BASE_BASED *Alloc(int size)
{
ULONG ul;
ul = (ULONG)size;
return (void BASE_BASED *)ul;
}
void _CRTAPI1 main(int argc, char **argv)
{
ULONG BASE_BASED *pul;
pvBase = 0;
pul = (ULONG BASE_BASED *)Alloc(sizeof(ULONG));
if (*pul != 0)
*pul = 0;
}