[PATCH] hnetcfg/tests: Pass correct parameter to WNetGetUniversalNameW

Fabian Maurer dark.shadow4 at web.de
Fri Jul 20 14:05:04 CDT 2018


Currently a pointer to a local variable is passed,
that causes severe stack corruption.

Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
 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 4e90ceb8fd..208f5838b5 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);
-- 
2.18.0




More information about the wine-devel mailing list