The OpenFile(fileName, xxx, OF_SHARE_EXCLUSIVE) API fails on Windows 9x if the file referenced by fileName is currently opened. ...

The OpenFile(fileName, xxx, OF_SHARE_EXCLUSIVE) API fails on Windows 9x if the file referenced by fileName is currently opened. Windows XP allows the OpenFile call to succeed. This compatibility fix forces the OpenFile API to fail if the file is already open.