Commit 8ce85059 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Handle EMR_HEADER record in spool files.

parent f925d3b0
......@@ -133,7 +133,16 @@ static struct pp_data* get_handle_data(HANDLE pp)
static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable,
const ENHMETARECORD *rec, int n, LPARAM arg)
{
struct pp_data *data = (struct pp_data *)arg;
switch (rec->iType)
{
case EMR_HEADER:
return PSDRV_StartPage(&data->pdev->dev);
default:
FIXME("unsupported record: %ld\n", rec->iType);
}
return 1;
}
......@@ -174,7 +183,7 @@ static BOOL print_metafile(struct pp_data *data, HANDLE hdata)
if (!hmf)
return FALSE;
ret = EnumEnhMetaFile(NULL, hmf, hmf_proc, NULL, NULL);
ret = EnumEnhMetaFile(NULL, hmf, hmf_proc, (void *)data, NULL);
DeleteEnhMetaFile(hmf);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment