* PROJECT: ReactOS api tests
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Test for WSAStartup
- * PROGRAMMER: Thomas Faber <thfabba@gmx.de>
+ * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
+#include <apitest.h>
+
#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+#include <windef.h>
#include <winsock2.h>
-#include <wine/test.h>
-#include <pseh/pseh2.h>
#include <ndk/rtlfuncs.h>
#include <ndk/mmfuncs.h>
-#define StartSeh() ExceptionStatus = STATUS_SUCCESS; _SEH2_TRY {
-#define EndSeh(ExpectedStatus) } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { ExceptionStatus = _SEH2_GetExceptionCode(); } _SEH2_END; ok(ExceptionStatus == ExpectedStatus, "Exception %lx, expected %lx\n", ExceptionStatus, ExpectedStatus)
-
static
PVOID
AllocateGuarded(
EqualLength = RtlCompareMemory(Buffer, Expected, Length);
if (EqualLength != Length)
{
- ok(0, "String is '%s', expected '%s'\n", Buffer, Expected);
+ ok(0, "String is '%.*s', expected '%s'\n", (int)MaximumLength, Buffer, Expected);
Result = FALSE;
}
START_TEST(WSAStartup)
{
- NTSTATUS ExceptionStatus;
BOOLEAN Okay;
LPWSADATA WsaData;
int Error;