Author: cwittich
Date: Sun May 24 13:40:15 2009
New Revision: 41096
URL:
http://svn.reactos.org/svn/reactos?rev=41096&view=rev
Log:
fix secur32 main winetest crash by returning 0 packages in EmumSecurityPackagesA/W
Modified:
trunk/reactos/dll/win32/secur32/sspi.c
Modified: trunk/reactos/dll/win32/secur32/sspi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/secur32/sspi.c?r…
==============================================================================
--- trunk/reactos/dll/win32/secur32/sspi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/secur32/sspi.c [iso-8859-1] Sun May 24 13:40:15 2009
@@ -73,23 +73,50 @@
SECURITY_STATUS
WINAPI
EnumerateSecurityPackagesW (
- PULONG pulong,
- PSecPkgInfoW* psecpkginfow
+ PULONG pcPackages,
+ PSecPkgInfoW* ppPackageInfo
)
{
- UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+ SECURITY_STATUS ret = SEC_E_OK;
+
+ *pcPackages = 0;
+
+ /*
+ if (packageTable)
+ {
+
+ }
+ */
+
+ UNIMPLEMENTED;
+ return ret;
}
SECURITY_STATUS
WINAPI
EnumerateSecurityPackagesA(
- PULONG pulong,
- PSecPkgInfoA* psecpkginfoa
+ PULONG pcPackages,
+ PSecPkgInfoA* ppPackageInfo
)
{
- UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+ SECURITY_STATUS ret;
+ PSecPkgInfoW info;
+
+ ret = EnumerateSecurityPackagesW(pcPackages, &info);
+ if (ret == SEC_E_OK && *pcPackages && info)
+ {
+ /* *ppPackageInfo = thunk_PSecPkgInfoWToA(*pcPackages, info);
+ if (*pcPackages && !*ppPackageInfo)
+ {
+ *pcPackages = 0;
+ ret = SEC_E_INSUFFICIENT_MEMORY;
+ } */
+ FreeContextBuffer(info);
+ }
+
+ UNIMPLEMENTED;
+
+ return ret;
}
SECURITY_STATUS