[ros-kernel] Re: Accessing floppy drive without floppy present hangs ReactOS

Ge van Geldorp ge at gse.nl
Tue Jan 20 09:31:20 CET 2004


> From: Martin Fuchs
> 
> > Can i ask why opening the reactos explorer hits the floppy 
> > disk? When you double click the A: drive, sure, but not before.
> 
> Explorer already tries to avoid this by not setting flag 
> SFGAO_READONLY when calling SHELL32_GetItemAttributes(). This 
> works on real MSW. But as the ROS shell32 implementation is 
> not yet perfect, this has no effect on ReactOS.

The chain of events actually starts in explorer/shell/mainframe.cpp, in
the MainFrame constructor, at line 127. This line contains a call to
GetDriveType() to determine the correct icon to display for a drive. In
the kernel this leads to a request to mount the media, for which it
wants to read the first sector of the disk.
So basically it will hit the floppy to display the correct icon. Whether
this is really needed is something we should figure out for the next
release I think. It's a bit late to make big changes for 0.2

Gé van Geldorp.




More information about the Ros-kernel mailing list