diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c index 7a390549af6..3cb698f82db 100644 --- a/dlls/ddraw/tests/visual.c +++ b/dlls/ddraw/tests/visual.c @@ -58,7 +58,7 @@ static HRESULT WINAPI enum_z_fmt(DDPIXELFORMAT *fmt, void *ctx) { DDPIXELFORMAT *zfmt = ctx; - if(U1(fmt)->dwZBufferBitDepth > U1(zfmt)->dwZBufferBitDepth) + if(U1(*fmt).dwZBufferBitDepth > U1(*zfmt).dwZBufferBitDepth) { *zfmt = *fmt; }