Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Münchhalfen
wine
Commits
6fafe9e0
Commit
6fafe9e0
authored
26 years ago
by
Huw D. M. Davies
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement SEGPTR conversion for STARTDOC in Escape32().
parent
7119a6ea
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
graphics/escape.c
+21
-0
21 additions, 0 deletions
graphics/escape.c
with
21 additions
and
0 deletions
graphics/escape.c
+
21
−
0
View file @
6fafe9e0
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment