﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
32	qdir_pm.cpp bug	froloff	dmik	"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:

----------------------8<-----------------------
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;

}
----------------------8<-----------------------"	defect	new	normal		kernel		normal			
