Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b80e7de8
Commit
b80e7de8
authored
Mar 27, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Load wine_get_build_id() dynamically.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
942964fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
shell32_main.c
dlls/shell32/shell32_main.c
+9
-4
No files found.
dlls/shell32/shell32_main.c
View file @
b80e7de8
...
...
@@ -810,10 +810,12 @@ static INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
{
ABOUT_INFO
*
info
=
(
ABOUT_INFO
*
)
lParam
;
WCHAR
template
[
512
],
buffer
[
512
],
version
[
64
];
extern
const
char
*
wine_get_build_id
(
void
);
const
char
*
(
CDECL
*
wine_get_build_id
)
(
void
);
if
(
info
)
{
wine_get_build_id
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"wine_get_build_id"
);
SendDlgItemMessageW
(
hWnd
,
stc1
,
STM_SETICON
,(
WPARAM
)
info
->
hIcon
,
0
);
GetWindowTextW
(
hWnd
,
template
,
ARRAY_SIZE
(
template
)
);
sprintfW
(
buffer
,
template
,
info
->
szApp
);
...
...
@@ -822,9 +824,12 @@ static INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
SetWindowTextW
(
GetDlgItem
(
hWnd
,
IDC_ABOUT_STATIC_TEXT2
),
info
->
szOtherStuff
);
GetWindowTextW
(
GetDlgItem
(
hWnd
,
IDC_ABOUT_STATIC_TEXT3
),
template
,
ARRAY_SIZE
(
template
)
);
MultiByteToWideChar
(
CP_UTF8
,
0
,
wine_get_build_id
(),
-
1
,
version
,
ARRAY_SIZE
(
version
)
);
sprintfW
(
buffer
,
template
,
version
);
SetWindowTextW
(
GetDlgItem
(
hWnd
,
IDC_ABOUT_STATIC_TEXT3
),
buffer
);
if
(
wine_get_build_id
)
{
MultiByteToWideChar
(
CP_UTF8
,
0
,
wine_get_build_id
(),
-
1
,
version
,
ARRAY_SIZE
(
version
)
);
sprintfW
(
buffer
,
template
,
version
);
SetWindowTextW
(
GetDlgItem
(
hWnd
,
IDC_ABOUT_STATIC_TEXT3
),
buffer
);
}
hWndCtl
=
GetDlgItem
(
hWnd
,
IDC_ABOUT_LISTBOX
);
SendMessageW
(
hWndCtl
,
WM_SETREDRAW
,
0
,
0
);
SendMessageW
(
hWndCtl
,
WM_SETFONT
,
(
WPARAM
)
info
->
hFont
,
0
);
...
...
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