prntvpt: Implement PTReleaseMemory.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2020-06-11 13:59:28 +08:00 committed by Alexandre Julliard
parent 48ef66e9e3
commit 899e4dae32
3 changed files with 8 additions and 1 deletions

View File

@ -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);

View File

@ -7,7 +7,7 @@
@ stub PTMergeAndValidatePrintTicket
@ stub PTConvertPrintTicketToDevMode
@ stub PTConvertDevModeToPrintTicket
@ stub PTReleaseMemory
@ stdcall PTReleaseMemory(ptr)
@ stub ConvertDevModeToPrintTicketThunk2
@ stub ConvertDevModeToPrintTicketThunk
@ stub ConvertPrintTicketToDevModeThunk2

View File

@ -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
}