[Box Backup-dev] COMMIT r519 - box/chris/general/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun Feb 26 11:42:09 GMT 2006


Author: chris
Date: 2006-02-26 11:42:08 +0000 (Sun, 26 Feb 2006)
New Revision: 519

Modified:
   box/chris/general/lib/win32/emu.cpp
Log:
* emu.cpp
- Report Windows' path not found errors as ENOENT, just like file not found


Modified: box/chris/general/lib/win32/emu.cpp
===================================================================
--- box/chris/general/lib/win32/emu.cpp	2006-02-26 11:40:46 UTC (rev 518)
+++ box/chris/general/lib/win32/emu.cpp	2006-02-26 11:42:08 UTC (rev 519)
@@ -695,7 +695,8 @@
 	{
 		DWORD err = GetLastError();
 
-		if (err == ERROR_FILE_NOT_FOUND)
+		if (err == ERROR_FILE_NOT_FOUND ||
+			err == ERROR_PATH_NOT_FOUND)
 		{
 			errno = ENOENT;
 		}




More information about the Boxbackup-dev mailing list