diff --git a/rostests/dxtest/ddraw/tests/CreateDDraw.cpp b/rostests/dxtest/ddraw/tests/CreateDDraw.cpp index 1cfdc176809..ec7a71cb6b3 100644 --- a/rostests/dxtest/ddraw/tests/CreateDDraw.cpp +++ b/rostests/dxtest/ddraw/tests/CreateDDraw.cpp @@ -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(); diff --git a/rostests/dxtest/ddraw/tests/CreateSurface.cpp b/rostests/dxtest/ddraw/tests/CreateSurface.cpp index 6d8e0bc65ba..af5de3eff18 100644 --- a/rostests/dxtest/ddraw/tests/CreateSurface.cpp +++ b/rostests/dxtest/ddraw/tests/CreateSurface.cpp @@ -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; -} \ No newline at end of file +}