Fix a typo and improve a test.

svn path=/trunk/; revision=26865
This commit is contained in:
Maarten Bosma 2007-05-22 10:57:53 +00:00
parent 3355adf732
commit fb06e53fc5
2 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

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