Commit 29438226 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ddrawex: Use stack ctx instead of uninitialized variable.

parent 507f6710
...@@ -678,11 +678,11 @@ IDirectDraw4Impl_EnumSurfaces(IDirectDraw4 *iface, ...@@ -678,11 +678,11 @@ IDirectDraw4Impl_EnumSurfaces(IDirectDraw4 *iface,
LPDDENUMSURFACESCALLBACK2 Callback) LPDDENUMSURFACESCALLBACK2 Callback)
{ {
IDirectDrawImpl *This = impl_from_dd4(iface); 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); TRACE("(%p)->(0x%08x,%p,%p,%p)\n", This, Flags, DDSD, Context, Callback);
ctx->orig_cb = Callback; ctx.orig_cb = Callback;
ctx->orig_ctx = Context; ctx.orig_ctx = Context;
return IDirectDraw4Impl_EnumSurfaces(This->parent, Flags, DDSD, &ctx, enum_surfaces_wrapper); return IDirectDraw4Impl_EnumSurfaces(This->parent, Flags, DDSD, &ctx, enum_surfaces_wrapper);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment