From 75d613f64f418afafb584c794d79c9e87c0181ba Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Thu, 5 Nov 2009 19:16:34 -0800 Subject: [PATCH] user32: Fix uninitialized variable so first call to DdeGetLastError isn't undefined. --- dlls/user32/dde_misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/dde_misc.c b/dlls/user32/dde_misc.c index 1a9b662bd59..d2de95429c5 100644 --- a/dlls/user32/dde_misc.c +++ b/dlls/user32/dde_misc.c @@ -380,6 +380,7 @@ UINT WDML_Initialize(LPDWORD pidInst, PFNCALLBACK pfnCallback, pInstance->nodeList = NULL; /* node will be added later */ pInstance->monitorFlags = afCmd & MF_MASK; pInstance->wStatus = 0; + pInstance->lastError = DMLERR_NO_ERROR; pInstance->servers = NULL; pInstance->convs[0] = NULL; pInstance->convs[1] = NULL;