summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-03-14 22:51:32 +0000
committerPete Batard <pbatard@gmail.com>2010-03-14 22:51:32 +0000
commit78710622a4ccf385950965edc6973c44cb570667 (patch)
treec0572be04744534c78a5f9053587ee9a0061f039
parent8c1de7a64d44cf8176836a514ba332cde10484a4 (diff)
downloadlibusb-r206.tar.gz
fixed NTSTATUS issue with MinGW (Xiaofan Chen)r206
-rw-r--r--libusb/os/poll_windows.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/poll_windows.h b/libusb/os/poll_windows.h
index 5de9867..97259e9 100644
--- a/libusb/os/poll_windows.h
+++ b/libusb/os/poll_windows.h
@@ -41,7 +41,7 @@
// Handle synchronous completion through the overlapped structure
#if !defined(STATUS_REPARSE) // reuse the REPARSE status code
-#define STATUS_REPARSE ((NTSTATUS)0x00000104L)
+#define STATUS_REPARSE ((LONG)0x00000104L)
#endif
#define STATUS_COMPLETED_SYNCHRONOUSLY STATUS_REPARSE
#define HasOverlappedIoCompletedSync(lpOverlapped) (((DWORD)(lpOverlapped)->Internal) == STATUS_COMPLETED_SYNCHRONOUSLY)