On 10 November 2014 23:08, Stefan Dösinger stefan@codeweavers.com wrote:
ddraw = create_ddraw(); ok(!!ddraw, "Failed to create a ddraw object.\n");
- memset(¶m, 0, sizeof(param));
- hr = IDirectDraw7_EnumDisplayModes(ddraw, 0, NULL, ¶m, test_coop_level_mode_set_enum_cb);
- ok(SUCCEEDED(hr), "Failed to enumerate display mode, hr %#x.\n", hr);
- ref = IDirectDraw7_Release(ddraw);
- ok(ref == 0, "The ddraw object was not properly freed: refcount %u.\n", ref);
...
- ddraw = create_ddraw();
- ok(!!ddraw, "Failed to create a ddraw object.\n");
This seems odd, why do you recreate the ddraw object?