Added patch for SfcGetNextProtectedFile stub function.

This commit is contained in:
Sebastian Lackner
2015-10-31 16:59:04 +01:00
parent 2e4d11137f
commit 85d50ecc2a
5 changed files with 78 additions and 1 deletions

View File

@@ -249,6 +249,7 @@ patch_enable_all ()
enable_setupapi_SetupDiSelectBestCompatDrv="$1"
enable_setupapi_SetupDiSetDeviceInstallParamsW="$1"
enable_setupapi_SetupPromptForDisk="$1"
enable_sfc_SfcGetNextProtectedFile="$1"
enable_shdocvw_ParseURLFromOutsideSource_Tests="$1"
enable_shell32_Default_Path="$1"
enable_shell32_File_Property_Dialog="$1"
@@ -844,6 +845,9 @@ patch_enable ()
setupapi-SetupPromptForDisk)
enable_setupapi_SetupPromptForDisk="$2"
;;
sfc-SfcGetNextProtectedFile)
enable_sfc_SfcGetNextProtectedFile="$2"
;;
shdocvw-ParseURLFromOutsideSource_Tests)
enable_shdocvw_ParseURLFromOutsideSource_Tests="$2"
;;
@@ -4974,6 +4978,21 @@ if test "$enable_setupapi_SetupPromptForDisk" -eq 1; then
) >> "$patchlist"
fi
# Patchset sfc-SfcGetNextProtectedFile
# |
# | This patchset fixes the following Wine bugs:
# | * [#38097] Add stub for SfcGetNextProtectedFile
# |
# | Modified files:
# | * dlls/sfc/sfc.spec, dlls/sfc_os/sfc_os.c, dlls/sfc_os/sfc_os.spec
# |
if test "$enable_sfc_SfcGetNextProtectedFile" -eq 1; then
patch_apply sfc-SfcGetNextProtectedFile/0001-sfc_os-Implement-SfcGetNextProtectedFile.patch
(
echo '+ { "Michael Müller", "sfc_os: Implement SfcGetNextProtectedFile.", 1 },';
) >> "$patchlist"
fi
# Patchset shdocvw-ParseURLFromOutsideSource_Tests
# |
# | Modified files:

View File

@@ -0,0 +1,55 @@
From b8ea046850c5c8e6b0a40d1414ca2ec7623266b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Sat, 31 Oct 2015 16:41:46 +0100
Subject: sfc_os: Implement SfcGetNextProtectedFile.
---
dlls/sfc/sfc.spec | 2 +-
dlls/sfc_os/sfc_os.c | 11 +++++++++++
dlls/sfc_os/sfc_os.spec | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/sfc/sfc.spec b/dlls/sfc/sfc.spec
index 04307d2..bdd66db 100644
--- a/dlls/sfc/sfc.spec
+++ b/dlls/sfc/sfc.spec
@@ -7,7 +7,7 @@
7 stub @
8 stub @
9 stub @
-@ stub SfcGetNextProtectedFile
+@ stdcall SfcGetNextProtectedFile(long ptr) sfc_os.SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr) sfc_os.SfcIsFileProtected
@ stdcall SfcIsKeyProtected(long wstr long) sfc_os.SfcIsKeyProtected
@ stub SfcWLEventLogoff
diff --git a/dlls/sfc_os/sfc_os.c b/dlls/sfc_os/sfc_os.c
index 5805342..fab4094 100644
--- a/dlls/sfc_os/sfc_os.c
+++ b/dlls/sfc_os/sfc_os.c
@@ -123,3 +123,14 @@ BOOL WINAPI SfcIsKeyProtected(HKEY hKey, LPCWSTR lpSubKey, REGSAM samDesired)
SetLastError(ERROR_FILE_NOT_FOUND);
return FALSE;
}
+
+/******************************************************************
+ * SfcGetNextProtectedFile [sfc_os.@]
+ */
+BOOL WINAPI SfcGetNextProtectedFile(HANDLE rpc, PROTECTED_FILE_DATA *data)
+{
+ FIXME("(%p, %p) stub\n", rpc, data);
+
+ SetLastError(ERROR_NO_MORE_FILES);
+ return FALSE;
+}
diff --git a/dlls/sfc_os/sfc_os.spec b/dlls/sfc_os/sfc_os.spec
index 1edcb83..6b216e0 100644
--- a/dlls/sfc_os/sfc_os.spec
+++ b/dlls/sfc_os/sfc_os.spec
@@ -1,3 +1,3 @@
-@ stub SfcGetNextProtectedFile
+@ stdcall SfcGetNextProtectedFile(long ptr)
@ stdcall SfcIsFileProtected(ptr wstr)
@ stdcall SfcIsKeyProtected(long wstr long)
--
2.6.1

View File

@@ -0,0 +1 @@
Fixes: [38097] Add stub for SfcGetNextProtectedFile