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 <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Fabian Maurer 2018-07-20 21:05:04 +02:00 committed by Alexandre Julliard
parent 94dda4690b
commit 7ec1ae2bef
1 changed files with 1 additions and 1 deletions

View File

@ -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);