Commit 10f0d0ed authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Better error return values from stub functions.

parent 7ef07bc6
...@@ -50,7 +50,7 @@ DWORD WINAPI WNetCachePassword( ...@@ -50,7 +50,7 @@ DWORD WINAPI WNetCachePassword(
pbPassword, debugstr_a(pbPassword), cbPassword, pbPassword, debugstr_a(pbPassword), cbPassword,
nType, x ); nType, x );
return WN_SUCCESS; return WN_NOT_SUPPORTED;
} }
/***************************************************************** /*****************************************************************
...@@ -62,7 +62,7 @@ UINT WINAPI WNetRemoveCachedPassword( LPSTR pbResource, WORD cbResource, ...@@ -62,7 +62,7 @@ UINT WINAPI WNetRemoveCachedPassword( LPSTR pbResource, WORD cbResource,
FIXME( "(%p(%s), %d, %d): stub\n", FIXME( "(%p(%s), %d, %d): stub\n",
pbResource, debugstr_a(pbResource), cbResource, nType ); pbResource, debugstr_a(pbResource), cbResource, nType );
return WN_SUCCESS; return WN_NOT_SUPPORTED;
} }
/***************************************************************** /*****************************************************************
...@@ -93,8 +93,7 @@ DWORD WINAPI WNetGetCachedPassword( ...@@ -93,8 +93,7 @@ DWORD WINAPI WNetGetCachedPassword(
pbResource, debugstr_a(pbResource), cbResource, pbResource, debugstr_a(pbResource), cbResource,
pbPassword, pcbPassword, nType ); pbPassword, pcbPassword, nType );
SetLastError(WN_NO_NETWORK); return WN_NOT_SUPPORTED;
return WN_NO_NETWORK;
} }
/******************************************************************* /*******************************************************************
...@@ -120,8 +119,5 @@ UINT WINAPI WNetEnumCachedPasswords( LPSTR pbPrefix, WORD cbPrefix, ...@@ -120,8 +119,5 @@ UINT WINAPI WNetEnumCachedPasswords( LPSTR pbPrefix, WORD cbPrefix,
pbPrefix, debugstr_a(pbPrefix), cbPrefix, pbPrefix, debugstr_a(pbPrefix), cbPrefix,
nType, enumPasswordProc, x ); nType, enumPasswordProc, x );
SetLastError(WN_NO_NETWORK); return WN_NOT_SUPPORTED;
return WN_NO_NETWORK;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment