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.