Skip to content

Commit 533e796

Browse files
committedFeb 10, 2017
Drop deprecated win api call for handling win 9.x compatibility
There's no way QGIS 3.0 is windows 98 compatible!!
1 parent 2ea3ac4 commit 533e796

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed
 

‎src/core/gps/qextserialport/qextserialenumerator.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -507,21 +507,7 @@ QList<QextPortInfo> QextSerialEnumerator::getPorts()
507507
QList<QextPortInfo> ports;
508508

509509
#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);
525511
#endif /*Q_OS_WIN*/
526512
#ifdef Q_OS_UNIX
527513
#ifdef Q_OS_MAC

0 commit comments

Comments
 (0)
Please sign in to comment.