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>
This commit is contained in:
parent
94dda4690b
commit
7ec1ae2bef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue