summaryrefslogtreecommitdiff
path: root/tap-win32.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-06 09:38:51 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-06 09:38:51 +0000
commitc7316a13066d1c1db9ad5871ba4d229d1d4a48ee (patch)
tree5432dc12247c1966f7cef733c4c2b6ebb3b69725 /tap-win32.c
parent2bb34d521ba78bfbdf097a001b9295fe65f702ed (diff)
downloadqemu-c7316a13066d1c1db9ad5871ba4d229d1d4a48ee.tar.gz
qemu-c7316a13066d1c1db9ad5871ba4d229d1d4a48ee.tar.bz2
qemu-c7316a13066d1c1db9ad5871ba4d229d1d4a48ee.zip
Win32: Fix warnings
Attached patch fixes some warnings which only happen on Windows. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5639 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tap-win32.c')
-rw-r--r--tap-win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tap-win32.c b/tap-win32.c
index bfec14578a..299b4b3225 100644
--- a/tap-win32.c
+++ b/tap-win32.c
@@ -77,7 +77,7 @@
// Compile time configuration
//======================
-//#define DEBUG_TAP_WIN32 1
+//#define DEBUG_TAP_WIN32
#define TUN_ASYNCHRONOUS_WRITES 1
@@ -509,7 +509,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param)
result = GetOverlappedResult( overlapped->handle, &overlapped->read_overlapped,
&read_size, FALSE);
if (!result) {
-#if DEBUG_TAP_WIN32
+#ifdef DEBUG_TAP_WIN32
LPVOID lpBuffer;
dwError = GetLastError();
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
@@ -520,7 +520,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param)
#endif
}
} else {
-#if DEBUG_TAP_WIN32
+#ifdef DEBUG_TAP_WIN32
LPVOID lpBuffer;
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),