aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/nirio
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/nirio')
-rw-r--r--host/lib/transport/nirio/nirio_driver_iface_win.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/transport/nirio/nirio_driver_iface_win.cpp b/host/lib/transport/nirio/nirio_driver_iface_win.cpp
index b47c6ce85..717923176 100644
--- a/host/lib/transport/nirio/nirio_driver_iface_win.cpp
+++ b/host/lib/transport/nirio/nirio_driver_iface_win.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2013 Ettus Research LLC
+// Copyright 2013,2015 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -60,14 +60,13 @@ nirio_status rio_ioctl(
* DeviceIoControl, even when doing synchronous IO. */
OVERLAPPED zeroedOverlapped = {0};
DWORD outLen = 0;
- int_fast32_t lastError = 0;
if (!(DeviceIoControl(device_handle, ioctl_code,
const_cast<void*>(write_buf), static_cast<DWORD>(write_buf_len),
read_buf, static_cast<DWORD>(read_buf_len),
&outLen, &zeroedOverlapped )))
{
- lastError = GetLastError();
+ int_fast32_t lastError = GetLastError();
return NiRio_Status_SoftwareFault;
}