From 7ec1ae2bef1a09f48914b106e28e7b76ffd3e5ca Mon Sep 17 00:00:00 2001 From: Fabian Maurer Date: Fri, 20 Jul 2018 21:05:04 +0200 Subject: [PATCH] hnetcfg/tests: Pass correct parameter to WNetGetUniversalNameW. Currently a pointer to a local variable is passed, that causes severe stack corruption. Signed-off-by: Fabian Maurer Signed-off-by: Alexandre Julliard --- dlls/hnetcfg/tests/policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/hnetcfg/tests/policy.c b/dlls/hnetcfg/tests/policy.c index 4e90ceb8fd1..208f5838b53 100644 --- a/dlls/hnetcfg/tests/policy.c +++ b/dlls/hnetcfg/tests/policy.c @@ -144,7 +144,7 @@ static void test_NetFwAuthorizedApplication(void) info = (UNIVERSAL_NAME_INFOW *)&netpath; sz = sizeof(netpath); - hr = WNetGetUniversalNameW(image, UNIVERSAL_NAME_INFO_LEVEL, &info, &sz); + hr = WNetGetUniversalNameW(image, UNIVERSAL_NAME_INFO_LEVEL, info, &sz); if (hr != NO_ERROR) { info->lpUniversalName = netpath + sizeof(*info)/sizeof(WCHAR);