Author: pschweitzer
Date: Sat Oct 24 08:20:05 2015
New Revision: 69661
URL:
http://svn.reactos.org/svn/reactos?rev=69661&view=rev
Log:
[MSVCRT]
Add a test that shows that _splitpath() null-terminates drive
Modified:
trunk/rostests/apitests/msvcrt/splitpath.c
Modified: trunk/rostests/apitests/msvcrt/splitpath.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/msvcrt/splitpath…
==============================================================================
--- trunk/rostests/apitests/msvcrt/splitpath.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/msvcrt/splitpath.c [iso-8859-1] Sat Oct 24 08:20:05 2015
@@ -22,11 +22,13 @@
Major = (DWORD)(LOBYTE(LOWORD(GetVersion())));
+ drive[2] = 0xFF;
_splitpath("c:\\dir1\\dir2\\file.ext", drive, dir, fname, ext);
ok_str(drive, "c:");
ok_str(dir, "\\dir1\\dir2\\");
ok_str(fname, "file");
ok_str(ext, ".ext");
+ ok_int(drive[2], 0);
*_errno() = 0;
_splitpath("c:\\dir1\\dir2\\file.ext", 0, 0, 0, 0);