hnetcfg: Initialize INetFwRules::get__NewEnum out parameter.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46906
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 16803516ef)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Gijs Vermeulen 2019-03-26 17:04:44 +01:00 committed by Michael Stefaniuc
parent fee0e11d36
commit d614927a10
2 changed files with 7 additions and 0 deletions

View File

@ -238,6 +238,10 @@ static HRESULT WINAPI netfw_rules_get__NewEnum(
fw_rules *This = impl_from_INetFwRules( iface );
FIXME("%p, %p\n", This, newEnum);
if (!newEnum) return E_POINTER;
*newEnum = NULL;
return E_NOTIMPL;
}

View File

@ -60,6 +60,9 @@ static void test_policy2_rules(INetFwPolicy2 *policy2)
INetFwServiceRestriction_Release(restriction);
}
hr = INetFwRules_get__NewEnum(rules, NULL);
ok(hr == E_POINTER, "got %08x\n", hr);
INetFwRules_Release(rules);
INetFwRules_Release(rules2);
}