Browse Source

Merge commit 'bea5c42' into bfgminer-3.5.x

Luke Dashjr 12 years ago
parent
commit
312b5b0e81
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fpgautils.c

+ 1 - 1
fpgautils.c

@@ -1397,7 +1397,7 @@ int get_serial_cts(const int fd)
 	if (fd == -1)
 		return -1;
 	const HANDLE fh = (HANDLE)_get_osfhandle(fd);
-	if (!fh)
+	if (fh == INVALID_HANDLE_VALUE)
 		return -1;
 
 	DWORD flags;