Opened 18 years ago

Last modified 18 years ago

#32 closed defect

qdir_pm.cpp bug — at Initial Version

Reported by: froloff Owned by: dmik
Priority: normal Milestone: qt-os2-3.3.1-rc07
Component: tools Version: 3.3.1-rc06
Severity: normal Keywords: trap access violation
Cc:

Description

Finally I found the bug, which cause QT application trap on my notebook, when using file dialog. It is strange that this mistake doesn't cause trap on desktop PC ;)

Here is the fixed version of QDir::rootDirPath() function:


QString QDir::rootDirPath()

{

ULONG bootDrive[1] = {0};

DosQuerySysInfo( QSV_BOOT_DRIVE, QSV_BOOT_DRIVE, (PVOID)bootDrive, sizeof(bootDrive) );

QString d = QChar( (char)(bootDrive[0] + 'A' - 1) );

d += ":/";

return d;

}


Change History (0)

Note: See TracTickets for help on using tickets.