Author: akhaldi
Date: Sat Oct 25 14:02:23 2014
New Revision: 64981
URL:
http://svn.reactos.org/svn/reactos?rev=64981&view=rev
Log:
[ADVAPI32]
* Update ADVAPI_IsLocalComputer().
CORE-8540
Modified:
trunk/reactos/dll/win32/advapi32/wine/security.c
Modified: trunk/reactos/dll/win32/advapi32/wine/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/se…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] Sat Oct 25 14:02:23
2014
@@ -325,12 +325,12 @@
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;
}