aboutsummaryrefslogtreecommitdiff
path: root/C/DllSecur.c
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2022-07-16 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2023-12-17 14:35:38 +0500
commit93be7d4abfd4233228f58ee1fbbcd76d91be66a4 (patch)
tree9b11631a70ca7150321838d9d6bd473e52d6684d /C/DllSecur.c
parenta3e1d227377188734b82f023f96f8e25dc40f3e6 (diff)
download7zip-22.01.tar.gz
7zip-22.01.tar.bz2
7zip-22.01.zip
22.0122.01
Diffstat (limited to '')
-rw-r--r--C/DllSecur.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/C/DllSecur.c b/C/DllSecur.c
index d81508c..dce0c96 100644
--- a/C/DllSecur.c
+++ b/C/DllSecur.c
@@ -1,5 +1,5 @@
1/* DllSecur.c -- DLL loading security 1/* DllSecur.c -- DLL loading security
22021-12-25 : Igor Pavlov : Public domain */ 22022-07-15 : Igor Pavlov : Public domain */
3 3
4#include "Precomp.h" 4#include "Precomp.h"
5 5
@@ -11,6 +11,10 @@
11 11
12#ifndef UNDER_CE 12#ifndef UNDER_CE
13 13
14#if defined(__GNUC__) && (__GNUC__ >= 8)
15 #pragma GCC diagnostic ignored "-Wcast-function-type"
16#endif
17
14typedef BOOL (WINAPI *Func_SetDefaultDllDirectories)(DWORD DirectoryFlags); 18typedef BOOL (WINAPI *Func_SetDefaultDllDirectories)(DWORD DirectoryFlags);
15 19
16#define MY_LOAD_LIBRARY_SEARCH_USER_DIRS 0x400 20#define MY_LOAD_LIBRARY_SEARCH_USER_DIRS 0x400
@@ -34,7 +38,7 @@ static const char * const g_Dlls =
34#endif 38#endif
35 39
36// #define MY_CAST_FUNC (void(*)()) 40// #define MY_CAST_FUNC (void(*)())
37#define MY_CAST_FUNC 41#define MY_CAST_FUNC
38 42
39void My_SetDefaultDllDirectories() 43void My_SetDefaultDllDirectories()
40{ 44{