Better error return values from stub functions.

This commit is contained in:
Aric Stewart 2003-05-12 03:29:50 +00:00 committed by Alexandre Julliard
parent 7ef07bc609
commit 10f0d0ed21
1 changed files with 4 additions and 8 deletions

View File

@ -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;
}