IWineD3DClipper* WINAPI WineDirect3DCreateClipper(IUnknown *Parent) { IWineD3DClipperImpl *obj; TRACE("Creating clipper, parent %p\n", Parent); obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*obj)); if(!obj) { ERR("Out of memory when trying to allocate a WineD3D Clipper\n"); return NULL; } obj->lpVtbl = &IWineD3DClipper_Vtbl; obj->Parent = Parent; IWineD3DClipper_AddRef((IWineD3DClipper *)obj); return (IWineD3DClipper *) obj; }
IWineD3DClipper * WINAPI WineDirect3DCreateClipper(void) { IWineD3DClipperImpl *obj; TRACE("\n"); obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*obj)); if(!obj) { ERR("Out of memory when trying to allocate a WineD3D Clipper\n"); return NULL; } obj->lpVtbl = &IWineD3DClipper_Vtbl; IWineD3DClipper_AddRef((IWineD3DClipper *)obj); return (IWineD3DClipper *) obj; }