Ignore LPT parallel devices on Windows
This commit is contained in:
parent
d0aab972b6
commit
22576d7365
|
@ -132,7 +132,7 @@ JNIEXPORT jobjectArray JNICALL Java_com_fazecast_jSerialComm_SerialPort_getCommP
|
||||||
comPortString = (comPort[0] == L'\\') ? (wcsrchr(comPort, L'\\') + 1) : comPort;
|
comPortString = (comPort[0] == L'\\') ? (wcsrchr(comPort, L'\\') + 1) : comPort;
|
||||||
if (key != INVALID_HANDLE_VALUE)
|
if (key != INVALID_HANDLE_VALUE)
|
||||||
RegCloseKey(key);
|
RegCloseKey(key);
|
||||||
if (!comPortString)
|
if (!comPortString || wcsstr(comPortString, L"LPT"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Fetch the friendly name for this device
|
// Fetch the friendly name for this device
|
||||||
|
|
Loading…
Reference in New Issue