[ros-bugs] [Bug 2128] Cmd.exe problem

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Fri Mar 30 14:25:02 CEST 2007


http://www.reactos.org/bugzilla/show_bug.cgi?id=2128





------- Comment #2 from tykef at atlas.cz  2007-03-30 14:25 CET -------
the crash is caused by GetFileAttributes, it is called from IsExistingDirectory
in misc.c line 446 with "\\.\" as path (this is returned by GetFullPathName and
is correct - behaves same as on WinXP) 

shouldn't it be replaced with GetFileAttributesEx? something like:

BOOL IsExistingDirectory (LPCTSTR pszPath)
{
        WIN32_FILE_ATTRIBUTE_DATA fileinfo;
        GetFileAttributesEx (pszPath, GetFileExInfoStandard, &fileinfo);
        return ((fileinfo.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) );
}

another thing is, that even if cmd does not crash it still doesn't send
anything to serial port


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.


More information about the Ros-bugs mailing list