Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5b60bf02
Commit
5b60bf02
authored
May 11, 2000
by
Bernd Herd
Committed by
Alexandre Julliard
May 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass CTLDATA as SEGPTR for 16-bit programs.
parent
84c28fc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
dialog.c
windows/dialog.c
+13
-4
No files found.
windows/dialog.c
View file @
5b60bf02
...
...
@@ -229,19 +229,26 @@ static LPCSTR DIALOG_GetControl16( LPCSTR p, DLG_CONTROL_INFO *info )
p
+=
strlen
(
p
)
+
1
;
}
info
->
data
=
(
LPVOID
)(
*
p
?
p
+
1
:
NULL
);
/* FIXME: should be a segptr */
if
(
*
p
)
{
/* Additional CTLDATA available for this control. */
info
->
data
=
SEGPTR_ALLOC
(
*
p
);
memcpy
(
info
->
data
,
p
+
1
,
*
p
);
}
else
info
->
data
=
NULL
;
p
+=
*
p
+
1
;
if
(
int_id
)
TRACE
(
" %s %04x %d, %d, %d, %d, %d, %08lx, %08lx
\n
"
,
info
->
className
,
LOWORD
(
info
->
windowName
),
info
->
id
,
info
->
x
,
info
->
y
,
info
->
cx
,
info
->
cy
,
info
->
style
,
(
DWORD
)
info
->
data
);
info
->
style
,
(
DWORD
)
SEGPTR_GET
(
info
->
data
)
);
else
TRACE
(
" %s '%s' %d, %d, %d, %d, %d, %08lx, %08lx
\n
"
,
info
->
className
,
info
->
windowName
,
info
->
id
,
info
->
x
,
info
->
y
,
info
->
cx
,
info
->
cy
,
info
->
style
,
(
DWORD
)
info
->
data
);
info
->
style
,
(
DWORD
)
SEGPTR_GET
(
info
->
data
)
);
return
p
;
}
...
...
@@ -397,7 +404,9 @@ static BOOL DIALOG_CreateControls( WND *pWnd, LPCSTR template,
MulDiv
(
info
.
cx
,
dlgInfo
->
xBaseUnit
,
4
),
MulDiv
(
info
.
cy
,
dlgInfo
->
yBaseUnit
,
8
),
pWnd
->
hwndSelf
,
(
HMENU16
)
info
.
id
,
instance
,
info
.
data
);
instance
,
(
LPVOID
)
SEGPTR_GET
(
info
.
data
)
);
if
(
info
.
data
)
SEGPTR_FREE
(
info
.
data
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment