fix multiple issues. Revert one of the checks which breaks processing of PE binaries. Removed the 'Group' line, not needed with modern Fedora/RPM.
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
From a02943b9d88473db80ab2bd97ae0bab107603744 Mon Sep 17 00:00:00 2001
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
Date: Thu, 9 Mar 2017 14:35:41 +0000
|
|
Subject: [PATCH 19/26] wrestool/restable.c: Const-correctness for
|
|
find_resource function.
|
|
|
|
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
|
|
---
|
|
wrestool/restable.c | 2 +-
|
|
wrestool/wrestool.h | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/wrestool/restable.c b/wrestool/restable.c
|
|
index c60806f..fa781f0 100644
|
|
--- a/wrestool/restable.c
|
|
+++ b/wrestool/restable.c
|
|
@@ -542,7 +542,7 @@ find_with_resource_array(WinLibrary *fi, WinResource *wr, char *id)
|
|
}
|
|
|
|
WinResource *
|
|
-find_resource (WinLibrary *fi, char *type, char *name, char *language, int *level)
|
|
+find_resource (WinLibrary *fi, const char *type, const char *name, const char *language, int *level)
|
|
{
|
|
WinResource *wr;
|
|
|
|
diff --git a/wrestool/wrestool.h b/wrestool/wrestool.h
|
|
index 111f7b1..635a0ef 100644
|
|
--- a/wrestool/wrestool.h
|
|
+++ b/wrestool/wrestool.h
|
|
@@ -91,7 +91,7 @@ typedef void (*DoResourceCallback) (WinLibrary *, WinResource *, WinResource *,
|
|
/* resource.c */
|
|
/* WinResource *list_resources (WinLibrary *, WinResource *, int *); */
|
|
bool read_library (WinLibrary *);
|
|
-WinResource *find_resource (WinLibrary *, char *, char *, char *, int *);
|
|
+WinResource *find_resource (WinLibrary *, const char *, const char *, const char *, int *);
|
|
void *get_resource_entry (WinLibrary *, WinResource *, int *);
|
|
void do_resources (WinLibrary *, char *, char *, char *, DoResourceCallback);
|
|
void print_resources_callback (WinLibrary *, WinResource *, WinResource *, WinResource *, WinResource *);
|
|
--
|
|
2.10.2
|
|
|