2014-11-14 23:31:56 -08:00
|
|
|
From 378c383c738f097fd6fa81badca0cde5c6858970 Mon Sep 17 00:00:00 2001
|
2014-05-29 16:04:27 -07:00
|
|
|
From: Sebastian Lackner <sebastian@fds-team.de>
|
|
|
|
Date: Thu, 29 May 2014 23:43:45 +0200
|
|
|
|
Subject: loader: Add commandline option --patches to show the patch list.
|
|
|
|
|
|
|
|
---
|
2014-11-14 23:31:56 -08:00
|
|
|
dlls/ntdll/misc.c | 8 ++++++++
|
|
|
|
dlls/ntdll/ntdll.spec | 1 +
|
|
|
|
loader/main.c | 32 +++++++++++++++++++++++++++++++-
|
|
|
|
3 files changed, 40 insertions(+), 1 deletion(-)
|
2014-05-29 16:04:27 -07:00
|
|
|
|
|
|
|
diff --git a/dlls/ntdll/misc.c b/dlls/ntdll/misc.c
|
2014-11-14 23:31:56 -08:00
|
|
|
index ad1b43b..1f985e7 100644
|
2014-05-29 16:04:27 -07:00
|
|
|
--- a/dlls/ntdll/misc.c
|
|
|
|
+++ b/dlls/ntdll/misc.c
|
2014-11-14 23:31:56 -08:00
|
|
|
@@ -55,6 +55,14 @@ const char * CDECL NTDLL_wine_get_version(void)
|
2014-05-29 16:04:27 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
+ * wine_get_patches (NTDLL.@)
|
|
|
|
+ */
|
|
|
|
+const void * CDECL NTDLL_wine_get_patches(void)
|
|
|
|
+{
|
|
|
|
+ return wine_get_patches();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/*********************************************************************
|
|
|
|
* wine_get_build_id (NTDLL.@)
|
|
|
|
*/
|
|
|
|
const char * CDECL NTDLL_wine_get_build_id(void)
|
|
|
|
diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
|
2014-11-14 23:31:56 -08:00
|
|
|
index 7e95969..f9483aa 100644
|
2014-05-29 16:04:27 -07:00
|
|
|
--- a/dlls/ntdll/ntdll.spec
|
|
|
|
+++ b/dlls/ntdll/ntdll.spec
|
2014-11-14 23:31:56 -08:00
|
|
|
@@ -1421,6 +1421,7 @@
|
2014-05-29 16:04:27 -07:00
|
|
|
|
|
|
|
# Version
|
|
|
|
@ cdecl wine_get_version() NTDLL_wine_get_version
|
|
|
|
+@ cdecl wine_get_patches() NTDLL_wine_get_patches
|
|
|
|
@ cdecl wine_get_build_id() NTDLL_wine_get_build_id
|
|
|
|
@ cdecl wine_get_host_version(ptr ptr) NTDLL_wine_get_host_version
|
|
|
|
|
|
|
|
diff --git a/loader/main.c b/loader/main.c
|
2014-11-14 23:31:56 -08:00
|
|
|
index ac67290..db9a176 100644
|
2014-05-29 16:04:27 -07:00
|
|
|
--- a/loader/main.c
|
|
|
|
+++ b/loader/main.c
|
2014-11-14 23:31:56 -08:00
|
|
|
@@ -89,7 +89,8 @@ static void check_command_line( int argc, char *argv[] )
|
2014-05-29 16:04:27 -07:00
|
|
|
static const char usage[] =
|
|
|
|
"Usage: wine PROGRAM [ARGUMENTS...] Run the specified program\n"
|
|
|
|
" wine --help Display this help and exit\n"
|
|
|
|
- " wine --version Output version information and exit";
|
|
|
|
+ " wine --version Output version information and exit\n"
|
|
|
|
+ " wine --patches Output patch information and exit";
|
|
|
|
|
|
|
|
if (argc <= 1)
|
|
|
|
{
|
2014-11-14 23:31:56 -08:00
|
|
|
@@ -106,6 +107,35 @@ static void check_command_line( int argc, char *argv[] )
|
2014-05-29 16:04:27 -07:00
|
|
|
printf( "%s\n", wine_get_build_id() );
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
+ if (!strcmp( argv[1], "--patches" ))
|
|
|
|
+ {
|
2014-11-14 23:31:56 -08:00
|
|
|
+ const struct
|
|
|
|
+ {
|
|
|
|
+ const char *author;
|
|
|
|
+ const char *subject;
|
|
|
|
+ }
|
|
|
|
+ *next, *cur = wine_get_patches();
|
|
|
|
+
|
|
|
|
+ while (cur->author)
|
2014-05-29 16:04:27 -07:00
|
|
|
+ {
|
2014-11-14 23:31:56 -08:00
|
|
|
+ next = cur + 1;
|
|
|
|
+ while (next->author)
|
|
|
|
+ {
|
|
|
|
+ if (strcmp(cur->author, next->author)) break;
|
|
|
|
+ next++;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ printf("%s (%d):\n", cur->author, next - cur);
|
|
|
|
+ while (cur < next)
|
|
|
|
+ {
|
|
|
|
+ printf(" %s\n", cur->subject);
|
|
|
|
+ cur++;
|
|
|
|
+ }
|
|
|
|
+ printf("\n");
|
2014-05-29 16:04:27 -07:00
|
|
|
+ }
|
2014-11-14 23:31:56 -08:00
|
|
|
+
|
2014-05-29 16:04:27 -07:00
|
|
|
+ exit(0);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2014-11-14 23:31:56 -08:00
|
|
|
2.1.3
|
2014-05-29 16:04:27 -07:00
|
|
|
|