mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:31:44 +00:00
Fix a typo and improve a test.
svn path=/trunk/; revision=26865
This commit is contained in:
parent
3355adf732
commit
fb06e53fc5
2 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue