Update to 7-Zip Version 22.01

See: https://sourceforge.net/p/sevenzip/discussion/45797/thread/c43cbc5f18/
This commit is contained in:
Tino Reichardt
2022-08-07 10:03:34 +02:00
parent 57558682a8
commit f9e0730191
47 changed files with 2485 additions and 812 deletions
+8 -4
View File
@@ -12,6 +12,9 @@
#include <ShlObj.h>
#define MY_CAST_FUNC (void(*)())
// #define MY_CAST_FUNC
#ifndef _UNICODE
extern bool g_IsNT;
#endif
@@ -39,15 +42,16 @@ int GetIconIndexForCSIDL(int csidl)
}
#ifndef _UNICODE
typedef int (WINAPI * SHGetFileInfoWP)(LPCWSTR pszPath, DWORD attrib, SHFILEINFOW *psfi, UINT cbFileInfo, UINT uFlags);
typedef int (WINAPI * Func_SHGetFileInfoW)(LPCWSTR pszPath, DWORD attrib, SHFILEINFOW *psfi, UINT cbFileInfo, UINT uFlags);
static struct CSHGetFileInfoInit
{
SHGetFileInfoWP shGetFileInfoW;
Func_SHGetFileInfoW shGetFileInfoW;
CSHGetFileInfoInit()
{
shGetFileInfoW = (SHGetFileInfoWP)
::GetProcAddress(::GetModuleHandleW(L"shell32.dll"), "SHGetFileInfoW");
shGetFileInfoW = (Func_SHGetFileInfoW)
MY_CAST_FUNC
::GetProcAddress(::GetModuleHandleW(L"shell32.dll"), "SHGetFileInfoW");
}
} g_SHGetFileInfoInit;
#endif