Windows 9x permitted a NULL buffer to be passed to the WriteFile API, with the assumption being that a series of zeroes should ...

Windows 9x permitted a NULL buffer to be passed to the WriteFile API, with the assumption being that a series of zeroes should be written. Windows XP will fail on this call when a NULL buffer is passed. This compatibility fix emulates the behavior of WriteFile on Windows 9x when it receives a NULL buffer. Applies to: Windows 95, Windows 98