[PATCH 4/5] d3drm: Add some tests
Paul Vriens
paul.vriens.wine at gmail.com
Mon Feb 1 03:06:06 CST 2010
On 02/01/2010 08:56 AM, Stefan Dösinger wrote:
> On Monday 01 February 2010 08:18:42 Christian Costa wrote:
>> +void Test(void)
>> +{
>> ...
>> Test();
> I think the function name Test() won't be too helpful once more tests are
> added. You can also make it static, unless you plan to call it from another .c
> file.
>
>
+#define D3DRM_GET_PROC(func) \
+ p ## func = (void*)GetProcAddress(d3drm_handle, #func); \
+ if(!p ## func) { \
+ trace("GetProcAddress(%s) failed\n", #func); \
A win_skip() would probably be better here.
+ FreeLibrary(d3drm_handle); \
+ return FALSE; \
+ }
+
+static BOOL InitFunctionPtrs(void)
+{
+ d3drm_handle = LoadLibraryA("d3drm.dll");
+
+ if(!d3drm_handle)
+ {
+ skip("Could not load d3drm.dll\n");
And here as well.
--
Cheers,
Paul.
More information about the wine-devel
mailing list