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