diff options
author | Ron Yorston <rmy@pobox.com> | 2024-06-16 08:07:46 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-06-16 08:07:46 +0100 |
commit | eb376b5d196358dafe454a4778746e46bad48ee7 (patch) | |
tree | 48a596e6fda67e59e1266f44c85360dc231723e3 /init | |
parent | edf069ffc299d88c2291c20736bd1463ff030e12 (diff) | |
download | busybox-w32-eb376b5d196358dafe454a4778746e46bad48ee7.tar.gz busybox-w32-eb376b5d196358dafe454a4778746e46bad48ee7.tar.bz2 busybox-w32-eb376b5d196358dafe454a4778746e46bad48ee7.zip |
win32: don't set error mode
Commit a8c63f25b3 (win32: improve filesystem detection and display)
added a call to SetErrorMode(SEM_FAILCRITICALERRORS). This was
on the strength of the documentation for GetVolumeInformation()
which suggests that otherwise a message box will appear to prompt
the user to put media in an empty floppy or CD drive. This would
disrupt the expected behaviour of applets like 'df'.
In practice it seems the call to SetErrorMode() is unnecessary.
It also results in other errors going unreported.
Remove the call to SetErrorMode().
Saves 8-20 bytes.
(GitHub issue #423)
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions