From: "Matteo Bruni (@Mystral)" Subject: Re: [PATCH 0/3] MR332: d3dx10: Support creating effect from pre-built shader Message-Id: Date: Fri, 01 Jul 2022 19:25:12 +0000 In-Reply-To: References: Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/tests/d3dx10.c: > + ULONG refcount; > + HRESULT hr; > + > + if (!(device = create_device())) > + { > + skip("Failed to create device, skipping tests.\n"); > + return; > + } > + > + /* test creating effect from pre-built DXBC shader */ > + load_resource(GetModuleHandleA(NULL), L"fx_test_ecbt.fx", &fx_test_ecbt, &fx_test_ecbt_size); > + > + errors = NULL; > + effect = NULL; > + hr = D3DX10CreateEffectFromMemory(fx_test_ecbt, fx_test_ecbt_size, NULL, > + NULL, NULL, "fx_4_0", 0x0, 0x0, device, NULL, NULL, &effect, We usually use 0 (or NULL) in these cases, rather than 0x0, '\0' and such. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/332#note_3147