Commit a94fe009c609bf95466b788d5919820fe962aaaa

Sam Lantinga 2020-11-21T18:40:27

Moved comment with the code it covers

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/hidapi/windows/hid.c b/src/hidapi/windows/hid.c
index e0d7149..358cc10 100644
--- a/src/hidapi/windows/hid.c
+++ b/src/hidapi/windows/hid.c
@@ -715,12 +715,12 @@ static int hid_write_timeout(hid_device *dev, const unsigned char *data, size_t 
 	size_t stashed_length = length;
 	unsigned char *buf;
 
+#if 1
 	/* If the application is writing to the device, it knows how much data to write.
 	 * This matches the behavior on other platforms. It's also important when writing
 	 * to Sony game controllers over Bluetooth, where there's a CRC at the end which
 	 * must not be tampered with.
 	 */
-#if 1
 	buf = (unsigned char *) data;
 #else
 	/* Make sure the right number of bytes are passed to WriteFile. Windows