From ef65e8cc09903e615ab255422e7ba820f19bb6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sun, 10 Jul 2011 13:28:47 +0000 Subject: [PATCH] [AFD] - fix MSVC build svn path=/trunk/; revision=52605 --- reactos/drivers/network/afd/afd/tdiconn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/network/afd/afd/tdiconn.c b/reactos/drivers/network/afd/afd/tdiconn.c index 56531c9cc61..f7ad44267ba 100644 --- a/reactos/drivers/network/afd/afd/tdiconn.c +++ b/reactos/drivers/network/afd/afd/tdiconn.c @@ -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 );