Commit b035f5c7 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ddrawex: Tweak the createDD() name to make CodeSpell happy.

parent ed75c597
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
static IDirectDrawFactory *factory; static IDirectDrawFactory *factory;
static HRESULT (WINAPI *pDllGetClassObject)(REFCLSID rclsid, REFIID riid, void **out); static HRESULT (WINAPI *pDllGetClassObject)(REFCLSID rclsid, REFIID riid, void **out);
static IDirectDraw *createDD(void) static IDirectDraw *createDDraw(void)
{ {
HRESULT hr; HRESULT hr;
IDirectDraw *dd; IDirectDraw *dd;
...@@ -46,7 +46,7 @@ static ULONG get_ref(IUnknown *o) ...@@ -46,7 +46,7 @@ static ULONG get_ref(IUnknown *o)
static void RefCountTest(void) static void RefCountTest(void)
{ {
IDirectDraw *dd1 = createDD(); IDirectDraw *dd1 = createDDraw();
IDirectDraw2 *dd2; IDirectDraw2 *dd2;
IDirectDraw3 *dd3; IDirectDraw3 *dd3;
IDirectDraw4 *dd4; IDirectDraw4 *dd4;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
static IDirectDrawFactory *factory; static IDirectDrawFactory *factory;
static HRESULT (WINAPI *pDllGetClassObject)(REFCLSID rclsid, REFIID riid, void **out); static HRESULT (WINAPI *pDllGetClassObject)(REFCLSID rclsid, REFIID riid, void **out);
static IDirectDraw *createDD(void) static IDirectDraw *createDDraw(void)
{ {
HRESULT hr; HRESULT hr;
IDirectDraw *dd; IDirectDraw *dd;
...@@ -74,7 +74,7 @@ static void GetDCTest_main(DDSURFACEDESC *ddsd, DDSURFACEDESC2 *ddsd2, void (*te ...@@ -74,7 +74,7 @@ static void GetDCTest_main(DDSURFACEDESC *ddsd, DDSURFACEDESC2 *ddsd2, void (*te
IDirectDrawSurface2 *surf3; IDirectDrawSurface2 *surf3;
IDirectDrawSurface4 *surf4; IDirectDrawSurface4 *surf4;
HRESULT hr; HRESULT hr;
IDirectDraw *dd1 = createDD(); IDirectDraw *dd1 = createDDraw();
IDirectDraw2 *dd2; IDirectDraw2 *dd2;
IDirectDraw3 *dd3; IDirectDraw3 *dd3;
IDirectDraw4 *dd4; IDirectDraw4 *dd4;
...@@ -156,7 +156,7 @@ static void GetDCTest(void) ...@@ -156,7 +156,7 @@ static void GetDCTest(void)
static void CapsTest(void) static void CapsTest(void)
{ {
DDSURFACEDESC ddsd; DDSURFACEDESC ddsd;
IDirectDraw *dd1 = createDD(); IDirectDraw *dd1 = createDDraw();
IDirectDrawSurface *surf; IDirectDrawSurface *surf;
HRESULT hr; HRESULT hr;
...@@ -247,7 +247,7 @@ static void test_surface_from_dc3(void) ...@@ -247,7 +247,7 @@ static void test_surface_from_dc3(void)
HRESULT hr; HRESULT hr;
HDC dc; HDC dc;
dd1 = createDD(); dd1 = createDDraw();
hr = IDirectDraw_QueryInterface(dd1, &IID_IDirectDraw3, (void **)&dd3); hr = IDirectDraw_QueryInterface(dd1, &IID_IDirectDraw3, (void **)&dd3);
ok(SUCCEEDED(hr), "IDirectDraw_QueryInterface failed, hr %#x.\n", hr); ok(SUCCEEDED(hr), "IDirectDraw_QueryInterface failed, hr %#x.\n", hr);
IDirectDraw_Release(dd1); IDirectDraw_Release(dd1);
...@@ -314,7 +314,7 @@ static void test_surface_from_dc4(void) ...@@ -314,7 +314,7 @@ static void test_surface_from_dc4(void)
HRESULT hr; HRESULT hr;
HDC dc; HDC dc;
dd1 = createDD(); dd1 = createDDraw();
hr = IDirectDraw_QueryInterface(dd1, &IID_IDirectDraw4, (void **)&dd4); hr = IDirectDraw_QueryInterface(dd1, &IID_IDirectDraw4, (void **)&dd4);
if (hr == E_NOINTERFACE) { if (hr == E_NOINTERFACE) {
win_skip("DirectDraw4 is not supported\n"); win_skip("DirectDraw4 is not supported\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment