[PATCH 1/4] kernelbase: Add SetCachedSigningLevel stub.

Mohamad Al-Jaf mohamadaljaf at gmail.com
Mon Nov 29 01:34:41 CST 2021


Fix Microsoft Edge offline installer "ERROR:win_signcache.cc
SetCachedSigningLevel method not supported" when running in
Windows 10 mode.

Signed-off-by: Mohamad Al-Jaf <mohamadaljaf at gmail.com>
---
 dlls/kernelbase/kernelbase.spec | 2 +-
 dlls/kernelbase/security.c      | 9 +++++++++
 include/winbase.h               | 1 +
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec
index 55208889c35..f4669ac73c9 100644
--- a/dlls/kernelbase/kernelbase.spec
+++ b/dlls/kernelbase/kernelbase.spec
@@ -1393,7 +1393,7 @@
 @ stdcall SearchPathA(str str str long ptr ptr)
 @ stdcall SearchPathW(wstr wstr wstr long ptr ptr)
 @ stdcall SetAclInformation(ptr ptr long long)
-# @ stub SetCachedSigningLevel
+@ stdcall SetCachedSigningLevel(ptr long long long)
 @ stdcall SetCalendarInfoW(long long long wstr)
 # @ stub SetClientDynamicTimeZoneInformation
 # @ stub SetClientTimeZoneInformation
diff --git a/dlls/kernelbase/security.c b/dlls/kernelbase/security.c
index 472076cf7fe..3b662854b31 100644
--- a/dlls/kernelbase/security.c
+++ b/dlls/kernelbase/security.c
@@ -1547,3 +1547,12 @@ BOOL WINAPI SetAclInformation( PACL acl, LPVOID info, DWORD len, ACL_INFORMATION
     FIXME( "%p %p 0x%08x 0x%08x - stub\n", acl, info, len, class );
     return TRUE;
 }
+
+/******************************************************************************
+ * SetCachedSigningLevel    (kernelbase.@)
+ */
+BOOL WINAPI SetCachedSigningLevel( PHANDLE source, ULONG count, ULONG flags, HANDLE file )
+{
+    FIXME( "%p %u %u %p - stub\n", source, count, flags, file );
+    return TRUE;
+}
\ No newline at end of file
diff --git a/include/winbase.h b/include/winbase.h
index 2928385bde6..8e8a185b4ff 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2611,6 +2611,7 @@ WINBASEAPI DWORD       WINAPI SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR
 WINBASEAPI DWORD       WINAPI SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*);
 #define                       SearchPath WINELIB_NAME_AW(SearchPath)
 WINADVAPI  BOOL        WINAPI SetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS);
+WINBASEAPI BOOL        WINAPI SetCachedSigningLevel(PHANDLE,ULONG,ULONG,HANDLE);
 WINBASEAPI BOOL        WINAPI SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD);
 WINBASEAPI BOOL        WINAPI SetCommBreak(HANDLE);
 WINBASEAPI BOOL        WINAPI SetCommMask(HANDLE,DWORD);
-- 
2.34.1




More information about the wine-devel mailing list