File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
src/core/gps/qextserialport Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -507,21 +507,7 @@ QList<QextPortInfo> QextSerialEnumerator::getPorts()
507
507
QList<QextPortInfo> ports;
508
508
509
509
#ifdef Q_OS_WIN
510
- OSVERSIONINFO vi;
511
- vi.dwOSVersionInfoSize = sizeof (vi);
512
- if (!::GetVersionEx (&vi)) {
513
- qCritical (" Could not get OS version." );
514
- return ports;
515
- }
516
- // Handle windows 9x and NT4 specially
517
- if (vi.dwMajorVersion < 5 ) {
518
- qCritical (" Enumeration for this version of Windows is not implemented yet" );
519
- /* if (vi.dwPlatformId == VER_PLATFORM_WIN32_NT)
520
- EnumPortsWNt4(ports);
521
- else
522
- EnumPortsW9x(ports);*/
523
- } else // w2k or later
524
- setupAPIScan (ports);
510
+ setupAPIScan (ports);
525
511
#endif /* Q_OS_WIN*/
526
512
#ifdef Q_OS_UNIX
527
513
#ifdef Q_OS_MAC
You can’t perform that action at this time.
0 commit comments