From 93ecff8e68c00797df7e8d0de2eff364a0737894 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 25 Oct 2014 14:02:23 +0000 Subject: [PATCH] [ADVAPI32] * Update ADVAPI_IsLocalComputer(). CORE-8540 svn path=/trunk/; revision=64981 --- reactos/dll/win32/advapi32/wine/security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/advapi32/wine/security.c b/reactos/dll/win32/advapi32/wine/security.c index 6456cf3eed1..8c3841da5f5 100644 --- a/reactos/dll/win32/advapi32/wine/security.c +++ b/reactos/dll/win32/advapi32/wine/security.c @@ -325,12 +325,12 @@ BOOL ADVAPI_IsLocalComputer(LPCWSTR ServerName) if (!ServerName || !ServerName[0]) return TRUE; - buf = HeapAlloc(GetProcessHeap(), 0, dwSize * sizeof(WCHAR)); + buf = heap_alloc(dwSize * sizeof(WCHAR)); Result = GetComputerNameW(buf, &dwSize); if (Result && (ServerName[0] == '\\') && (ServerName[1] == '\\')) ServerName += 2; Result = Result && !lstrcmpW(ServerName, buf); - HeapFree(GetProcessHeap(), 0, buf); + heap_free(buf); return Result; }