Author: jgardou
Date: Sun Jul 10 13:28:47 2011
New Revision: 52605
URL:
http://svn.reactos.org/svn/reactos?rev=52605&view=rev
Log:
[AFD]
- fix MSVC build
Modified:
trunk/reactos/drivers/network/afd/afd/tdiconn.c
Modified: trunk/reactos/drivers/network/afd/afd/tdiconn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/td…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/tdiconn.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/tdiconn.c [iso-8859-1] Sun Jul 10 13:28:47 2011
@@ -81,10 +81,11 @@
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 );