mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 20:36:26 +00:00
[MSVCRT]
Add a test that shows that _splitpath() null-terminates drive svn path=/trunk/; revision=69661
This commit is contained in:
parent
259db826a9
commit
34c9b63005
1 changed files with 2 additions and 0 deletions
|
@ -22,11 +22,13 @@ START_TEST(splitpath)
|
|||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue