diff --git a/dlls/prntvpt/main.c b/dlls/prntvpt/main.c index 1bbe280d0e5..e150308720b 100644 --- a/dlls/prntvpt/main.c +++ b/dlls/prntvpt/main.c @@ -51,6 +51,12 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) return TRUE; } +HRESULT WINAPI PTReleaseMemory(PVOID mem) +{ + heap_free(mem); + return S_OK; +} + HRESULT WINAPI PTQuerySchemaVersionSupport(PCWSTR printer, DWORD *version) { FIXME("stub:%s %p\n", debugstr_w(printer), version); diff --git a/dlls/prntvpt/prntvpt.spec b/dlls/prntvpt/prntvpt.spec index 99c67082425..d785bae9c64 100644 --- a/dlls/prntvpt/prntvpt.spec +++ b/dlls/prntvpt/prntvpt.spec @@ -7,7 +7,7 @@ @ stub PTMergeAndValidatePrintTicket @ stub PTConvertPrintTicketToDevMode @ stub PTConvertDevModeToPrintTicket -@ stub PTReleaseMemory +@ stdcall PTReleaseMemory(ptr) @ stub ConvertDevModeToPrintTicketThunk2 @ stub ConvertDevModeToPrintTicketThunk @ stub ConvertPrintTicketToDevModeThunk2 diff --git a/include/prntvpt.h b/include/prntvpt.h index a453f8cb37d..a3c28ef6d44 100644 --- a/include/prntvpt.h +++ b/include/prntvpt.h @@ -28,6 +28,7 @@ DECLARE_HANDLE(HPTPROVIDER); HRESULT WINAPI PTOpenProvider(const WCHAR *printer, DWORD version, HPTPROVIDER *provider); HRESULT WINAPI PTOpenProviderEx(const WCHAR *printer, DWORD max_version, DWORD pref_version, HPTPROVIDER *provider, DWORD *used_version); HRESULT WINAPI PTCloseProvider(HPTPROVIDER); +HRESULT WINAPI PTReleaseMemory(PVOID); #ifdef __cplusplus }