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
8aa5b996
Commit
8aa5b996
authored
Oct 13, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user.exe: Pass resource ID as a string in DIALOG_CreateControls16.
Based on commit
0739aa61
. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53646
parent
03f5f72c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
dialog.c
dlls/user.exe16/dialog.c
+13
-1
No files found.
dlls/user.exe16/dialog.c
View file @
8aa5b996
...
...
@@ -181,13 +181,25 @@ static BOOL DIALOG_CreateControls16( HWND hwnd, LPCSTR template,
TRACE
(
" BEGIN
\n
"
);
while
(
items
--
)
{
char
*
caption
,
caption_buf
[
4
];
HINSTANCE16
instance
=
hInst
;
SEGPTR
segptr
;
template
=
DIALOG_GetControl16
(
template
,
&
info
);
segptr
=
MapLS
(
info
.
data
);
caption
=
(
char
*
)
info
.
windowName
;
if
(
caption
&&
IS_INTRESOURCE
(
caption
))
{
caption_buf
[
0
]
=
0xff
;
caption_buf
[
1
]
=
PtrToUlong
(
caption
);
caption_buf
[
2
]
=
PtrToUlong
(
caption
)
>>
8
;
caption_buf
[
3
]
=
0
;
caption
=
caption_buf
;
}
hwndCtrl
=
WIN_Handle32
(
CreateWindowEx16
(
WS_EX_NOPARENTNOTIFY
,
info
.
className
,
info
.
windowName
,
info
.
className
,
caption
,
info
.
style
|
WS_CHILD
,
MulDiv
(
info
.
x
,
dlgInfo
->
xBaseUnit
,
4
),
MulDiv
(
info
.
y
,
dlgInfo
->
yBaseUnit
,
8
),
...
...
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