From fb06e53fc55649630c27505801805c67970d060c Mon Sep 17 00:00:00 2001 From: Maarten Bosma Date: Tue, 22 May 2007 10:57:53 +0000 Subject: [PATCH] Fix a typo and improve a test. svn path=/trunk/; revision=26865 --- rostests/dxtest/ddraw/tests/CreateDDraw.cpp | 4 ++-- rostests/dxtest/ddraw/tests/CreateSurface.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rostests/dxtest/ddraw/tests/CreateDDraw.cpp b/rostests/dxtest/ddraw/tests/CreateDDraw.cpp index 1cfdc176809..ec7a71cb6b3 100644 --- a/rostests/dxtest/ddraw/tests/CreateDDraw.cpp +++ b/rostests/dxtest/ddraw/tests/CreateDDraw.cpp @@ -119,12 +119,12 @@ BOOL Test_GetFourCCCodes (INT* passed, INT* failed) /* Here we go */ DWORD dwNumCodes, *lpCodes; - TEST (DirectDraw->GetFourCCCodes(NULL, NULL) == DDERR_INVALIDPARAMS); - TEST ( DirectDraw->GetFourCCCodes(NULL, lpCodes) == DDERR_INVALIDPARAMS ); + TEST (DirectDraw->GetFourCCCodes(NULL, (PDWORD)0xdeadbeef) == DDERR_INVALIDPARAMS); TEST (DirectDraw->GetFourCCCodes(&dwNumCodes, NULL) == DD_OK && dwNumCodes); lpCodes = (PDWORD)HeapAlloc(GetProcessHeap(), 0, sizeof(DWORD)*dwNumCodes); *lpCodes = 0; + TEST ( DirectDraw->GetFourCCCodes(NULL, lpCodes) == DDERR_INVALIDPARAMS ); TEST (DirectDraw->GetFourCCCodes(&dwNumCodes, lpCodes) == DD_OK && *lpCodes ); DirectDraw->Release(); diff --git a/rostests/dxtest/ddraw/tests/CreateSurface.cpp b/rostests/dxtest/ddraw/tests/CreateSurface.cpp index 6d8e0bc65ba..af5de3eff18 100644 --- a/rostests/dxtest/ddraw/tests/CreateSurface.cpp +++ b/rostests/dxtest/ddraw/tests/CreateSurface.cpp @@ -22,7 +22,7 @@ BOOL Test_CreateSurface (INT* passed, INT* failed) if (DirectDraw->SetCooperativeLevel (hwnd, DDSCL_NORMAL) != DD_OK) { - printf("ERROR: you not set cooperative level\n"); + printf("ERROR: Could not set cooperative level\n"); DirectDraw->Release(); return 0; } @@ -207,4 +207,4 @@ BOOL Test_CreateSurface (INT* passed, INT* failed) DirectDraw->Release(); return TRUE; -} \ No newline at end of file +}