[PATCH 2/2] rasapi32: Add RasSetCredentialsA/W stubs

Oleg Dubinskiy oleg.dubinskij2013 at yandex.ua
Thu Aug 20 06:31:18 CDT 2020


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49726
Signed-off-by: Oleg Dubinskiy <oleg.dubinskij2013 at yandex.ua>
---
 dlls/rasapi32/rasapi.c      | 16 ++++++++++++++++
 dlls/rasapi32/rasapi32.spec |  4 ++--
 include/ras.h               |  3 +++
 3 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/dlls/rasapi32/rasapi.c b/dlls/rasapi32/rasapi.c
index 791b0dab13..7200cee4f1 100644
--- a/dlls/rasapi32/rasapi.c
+++ b/dlls/rasapi32/rasapi.c
@@ -496,6 +496,22 @@ DWORD WINAPI RasRenameEntryW(LPCWSTR lpszPhonebook, LPCWSTR lpszOldEntry, LPCWST
     return 0;
 }
 
+DWORD WINAPI RasSetCredentialsA(LPCSTR lpszPhonebook, LPCSTR lpszOldEntry, LPRASCREDENTIALSA lprascredentials,
+                                BOOL clear)
+{
+    FIXME("(%s,%s,%p,0x%x), stub!\n", debugstr_a(lpszPhonebook), debugstr_a(lpszOldEntry),
+          lprascredentials, clear);
+    return ERROR_UNKNOWN;
+}
+
+DWORD WINAPI RasSetCredentialsW(LPCWSTR lpszPhonebook, LPCWSTR lpszOldEntry, LPRASCREDENTIALSW lprascredentials,
+                                BOOL clear)
+{
+    FIXME("(%s,%s,%p,0x%x), stub!\n", debugstr_w(lpszPhonebook), debugstr_w(lpszOldEntry),
+          lprascredentials, clear);
+    return ERROR_UNKNOWN;
+}
+
 DWORD WINAPI RasSetCustomAuthDataA(const char *phonebook, const char *entry, BYTE *authdata, DWORD size)
 {
     FIXME("(%s,%s,%p,0x%08x), stub!\n", debugstr_a(phonebook), debugstr_a(entry), authdata, size);
diff --git a/dlls/rasapi32/rasapi32.spec b/dlls/rasapi32/rasapi32.spec
index e8a28a8814..d917c335a7 100644
--- a/dlls/rasapi32/rasapi32.spec
+++ b/dlls/rasapi32/rasapi32.spec
@@ -64,8 +64,8 @@
 @ stdcall RasSetAutodialEnableW(long long)
 @ stdcall RasSetAutodialParamA(long ptr long)
 @ stdcall RasSetAutodialParamW(long ptr long)
-@ stub RasSetCredentialsA
-@ stub RasSetCredentialsW
+@ stdcall RasSetCredentialsA(str str ptr long)
+@ stdcall RasSetCredentialsW(wstr wstr ptr long)
 @ stdcall RasSetCustomAuthDataA(str str ptr long)
 @ stdcall RasSetCustomAuthDataW(wstr wstr ptr long)
 @ stdcall RasSetEntryDialParamsA(str ptr long)
diff --git a/include/ras.h b/include/ras.h
index bd29343dc5..458128be61 100644
--- a/include/ras.h
+++ b/include/ras.h
@@ -532,6 +532,9 @@ DWORD WINAPI RasSetAutodialAddressW(LPCWSTR,DWORD,LPRASAUTODIALENTRYW,DWORD,DWOR
 DWORD WINAPI RasSetAutodialParamA(DWORD,LPVOID,DWORD);
 DWORD WINAPI RasSetAutodialParamW(DWORD,LPVOID,DWORD);
 #define      RasSetAutodialParam WINELIB_NAME_AW(RasSetAutodialParam)
+DWORD WINAPI RasSetCredentialsA(LPCSTR,LPCSTR,LPRASCREDENTIALSA,BOOL)
+DWORD WINAPI RasSetCredentialsW(LPCWSTR,LPCWSTR,LPRASCREDENTIALSW,BOOL)
+#define      RasSetCredentials WINELIB_NAME_AW(RasSetCredentials)
 DWORD WINAPI RasSetCustomAuthDataA(const CHAR *,const CHAR *,BYTE *,DWORD);
 DWORD WINAPI RasSetCustomAuthDataW(const WCHAR *,const WCHAR *,BYTE *,DWORD);
 #define      RasSetCustomAuthData WINELIB_NAME_AW(RasSetCustomAuthData)
-- 
2.28.0




More information about the wine-devel mailing list