From 10f0d0ed2166d93f8455915fbde63afe105c4cf6 Mon Sep 17 00:00:00 2001
From: Aric Stewart <aric@codeweavers.com>
Date: Mon, 12 May 2003 03:29:50 +0000
Subject: [PATCH] Better error return values from stub functions.

---
 dlls/mpr/pwcache.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c
index 72f881657e2..1bd02c6ff44 100644
--- a/dlls/mpr/pwcache.c
+++ b/dlls/mpr/pwcache.c
@@ -50,7 +50,7 @@ DWORD WINAPI WNetCachePassword(
 	   pbPassword, debugstr_a(pbPassword), cbPassword,
 	   nType, x );
 
-    return WN_SUCCESS;
+    return WN_NOT_SUPPORTED;
 }
 
 /*****************************************************************
@@ -62,7 +62,7 @@ UINT WINAPI WNetRemoveCachedPassword( LPSTR pbResource, WORD cbResource,
     FIXME( "(%p(%s), %d, %d): stub\n",
            pbResource, debugstr_a(pbResource), cbResource, nType );
 
-    return WN_SUCCESS;
+    return WN_NOT_SUPPORTED;
 }
 
 /*****************************************************************
@@ -93,8 +93,7 @@ DWORD WINAPI WNetGetCachedPassword(
            pbResource, debugstr_a(pbResource), cbResource,
 	   pbPassword, pcbPassword, nType );
 
-    SetLastError(WN_NO_NETWORK);
-    return WN_NO_NETWORK;
+    return WN_NOT_SUPPORTED;
 }
 
 /*******************************************************************
@@ -120,8 +119,5 @@ UINT WINAPI WNetEnumCachedPasswords( LPSTR pbPrefix, WORD cbPrefix,
            pbPrefix, debugstr_a(pbPrefix), cbPrefix,
 	   nType, enumPasswordProc, x );
 
-    SetLastError(WN_NO_NETWORK);
-    return WN_NO_NETWORK;
+    return WN_NOT_SUPPORTED;
 }
-
-
-- 
GitLab