- fix MSVC build

svn path=/trunk/; revision=52605
This commit is contained in:
Jérôme Gardou 2011-07-10 13:28:47 +00:00
parent f23c2d83be
commit ef65e8cc09

View file

@ -81,10 +81,11 @@ VOID TaCopyAddressInPlace( PTA_ADDRESS Target,
PTA_ADDRESS TaCopyAddress( PTA_ADDRESS Source ) {
UINT AddrLen = TaLengthOfAddress( Source );
PVOID Buffer;
if (!AddrLen)
return NULL;
PVOID Buffer = ExAllocatePool( NonPagedPool, AddrLen );
Buffer = ExAllocatePool( NonPagedPool, AddrLen );
if (Buffer)
RtlCopyMemory( Buffer, Source, AddrLen );