ddrawex: Use stack ctx instead of uninitialized variable.

This commit is contained in:
Marcus Meissner 2009-01-26 18:06:24 +01:00 committed by Alexandre Julliard
parent 507f6710ba
commit 294382269d
1 changed files with 3 additions and 3 deletions

View File

@ -678,11 +678,11 @@ IDirectDraw4Impl_EnumSurfaces(IDirectDraw4 *iface,
LPDDENUMSURFACESCALLBACK2 Callback)
{
IDirectDrawImpl *This = impl_from_dd4(iface);
struct enumsurfaces4_ctx *ctx;
struct enumsurfaces4_ctx ctx;
TRACE("(%p)->(0x%08x,%p,%p,%p)\n", This, Flags, DDSD, Context, Callback);
ctx->orig_cb = Callback;
ctx->orig_ctx = Context;
ctx.orig_cb = Callback;
ctx.orig_ctx = Context;
return IDirectDraw4Impl_EnumSurfaces(This->parent, Flags, DDSD, &ctx, enum_surfaces_wrapper);
}