Author: mbosma
Date: Tue May 22 14:57:53 2007
New Revision: 26865
URL:
http://svn.reactos.org/svn/reactos?rev=26865&view=rev
Log:
Fix a typo and improve a test.
Modified:
trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp
trunk/rostests/dxtest/ddraw/tests/CreateSurface.cpp
Modified: trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/dxtest/ddraw/tests/Create…
==============================================================================
--- trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp (original)
+++ trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp Tue May 22 14:57:53 2007
@@ -119,12 +119,12 @@
/* 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();
Modified: trunk/rostests/dxtest/ddraw/tests/CreateSurface.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/dxtest/ddraw/tests/Create…
==============================================================================
--- trunk/rostests/dxtest/ddraw/tests/CreateSurface.cpp (original)
+++ trunk/rostests/dxtest/ddraw/tests/CreateSurface.cpp Tue May 22 14:57:53 2007
@@ -22,7 +22,7 @@
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 @@
DirectDraw->Release();
return TRUE;
-}
+}