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
20b4cdde
Commit
20b4cdde
authored
Jan 02, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Load dynamically wine_get_version().
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
d40a0d8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
nonclient.c
dlls/user32/nonclient.c
+7
-3
No files found.
dlls/user32/nonclient.c
View file @
20b4cdde
...
...
@@ -159,12 +159,16 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
if
(
hmodule
)
{
BOOL
(
WINAPI
*
aboutproc
)(
HWND
,
LPCSTR
,
LPCSTR
,
HICON
);
extern
const
char
*
CDECL
wine_get_version
(
void
);
const
char
*
(
CDECL
*
p_wine_get_version
)
(
void
);
char
app
[
256
];
sprintf
(
app
,
"Wine %s"
,
wine_get_version
()
);
p_wine_get_version
=
(
void
*
)
GetProcAddress
(
GetModuleHandleW
(
L"ntdll.dll"
),
"wine_get_version"
);
aboutproc
=
(
void
*
)
GetProcAddress
(
hmodule
,
"ShellAboutA"
);
if
(
aboutproc
)
aboutproc
(
hwnd
,
app
,
NULL
,
0
);
if
(
p_wine_get_version
&&
aboutproc
)
{
snprintf
(
app
,
ARRAY_SIZE
(
app
),
"Wine %s"
,
p_wine_get_version
()
);
aboutproc
(
hwnd
,
app
,
NULL
,
0
);
}
FreeLibrary
(
hmodule
);
}
}
...
...
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