mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Fix a typo and improve a test.
svn path=/trunk/; revision=26865
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user