Commit 6fafe9e0 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Implement SEGPTR conversion for STARTDOC in Escape32().

parent 7119a6ea
......@@ -74,8 +74,25 @@ INT32 WINAPI Escape32( HDC32 hdc, INT32 nEscape, INT32 cbInput,
segout = SEGPTR_GET(SEGPTR_ALLOC(200));
break;
}
/* Escape(hdc,STARTDOC,LPSTR,NULL); */
case STARTDOC: /* string may not be \0 terminated */
if(lpszInData) {
char *cp = SEGPTR_ALLOC(cbInput);
memcpy(cp, lpszInData, cbInput);
segin = SEGPTR_GET(cp);
} else
segin = 0;
break;
default:
break;
}
ret = dc->funcs->pEscape( dc, nEscape, cbInput, segin, segout );
switch(nEscape) {
case QUERYESCSUPPORT:
if (ret)
......@@ -110,6 +127,10 @@ INT32 WINAPI Escape32( HDC32 hdc, INT32 nEscape, INT32 cbInput,
SEGPTR_FREE(x);
break;
}
case STARTDOC:
SEGPTR_FREE(PTR_SEG_TO_LIN(segin));
break;
default:
break;
}
......
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