[PATCH] sfc: add ordinals exports, sfc.3,4 stubs
Marcus Meissner
meissner at suse.de
Sun Nov 30 14:27:25 CST 2008
Hi,
Adobe Photoshop CS3 calls GetProcAddress("sfc.dll", 3)
and calls it, same for 4, with 4 bytes argument both.
Added winedump spec exported ordinals, left the named
functions as-is.
Ciao, Marcus
---
dlls/sfc/sfc.spec | 7 +++++++
dlls/sfc_os/sfc_os.c | 10 ++++++++++
dlls/sfc_os/sfc_os.spec | 10 ++++++++++
3 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/dlls/sfc/sfc.spec b/dlls/sfc/sfc.spec
index 8afb515..e35a7ab 100644
--- a/dlls/sfc/sfc.spec
+++ b/dlls/sfc/sfc.spec
@@ -1,3 +1,10 @@
+1 stub sfc_1
+2 stub sfc_2
+3 stdcall sfc_3(long) sfc_os.sfc_os3
+4 stdcall sfc_4(long) sfc_os.sfc_os4
+5 stub sfc_5
+6 stub sfc_6
+7 stub sfc_7
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr) sfc_os.SfcIsFileProtected
@ stdcall SfcIsKeyProtected(long wstr long) sfc_os.SfcIsKeyProtected
diff --git a/dlls/sfc_os/sfc_os.c b/dlls/sfc_os/sfc_os.c
index 5805342..db573c8 100644
--- a/dlls/sfc_os/sfc_os.c
+++ b/dlls/sfc_os/sfc_os.c
@@ -123,3 +123,13 @@ BOOL WINAPI SfcIsKeyProtected(HKEY hKey, LPCWSTR lpSubKey, REGSAM samDesired)
SetLastError(ERROR_FILE_NOT_FOUND);
return FALSE;
}
+
+DWORD sfc_os3(DWORD x) {
+ FIXME("(%08x), stub!\n", x);
+ return 0;
+}
+
+DWORD sfc_os4(DWORD x) {
+ FIXME("(%08x), stub!\n", x);
+ return 0;
+}
diff --git a/dlls/sfc_os/sfc_os.spec b/dlls/sfc_os/sfc_os.spec
index 1edcb83..2e03359 100644
--- a/dlls/sfc_os/sfc_os.spec
+++ b/dlls/sfc_os/sfc_os.spec
@@ -1,3 +1,13 @@
+1 stub sfc_os1
+2 stub sfc_os2
+3 stdcall sfc_os3(long)
+4 stdcall sfc_os4(long)
+5 stub sfc_os5
+6 stub sfc_os6
+7 stub sfc_os7
+
@ stub SfcGetNextProtectedFile
@ stdcall SfcIsFileProtected(ptr wstr)
+@ stub SfcWLEventLogoff
+@ stub SfcWLEventLogon
@ stdcall SfcIsKeyProtected(long wstr long)
--
1.5.6
More information about the wine-patches
mailing list