mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 23:43:08 +00:00
[KERNEL32_APITEST]
- Fix GCC 4.7 warning; fix a typo spotted by Edijus svn path=/trunk/; revision=58295
This commit is contained in:
parent
54a7a551a2
commit
555dc7c2aa
2 changed files with 3 additions and 4 deletions
|
@ -1,12 +1,10 @@
|
||||||
|
|
||||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
GetCurrentDirectory.c
|
GetCurrentDirectory.c
|
||||||
GetDriveType.c
|
GetDriveType.c
|
||||||
GetModuleFileName.c
|
GetModuleFileName.c
|
||||||
lstrcpynW.c
|
lstrcpynW.c
|
||||||
MultiByteToWideChar.c
|
MultiByteToWideChar.c
|
||||||
SetCurrentDirectory.c
|
SetCurrentDirectory.c
|
||||||
SetUnhandledExceptionFilter.c
|
SetUnhandledExceptionFilter.c
|
||||||
testlist.c)
|
testlist.c)
|
||||||
|
|
|
@ -35,6 +35,7 @@ StartChild(char **argv)
|
||||||
-1,
|
-1,
|
||||||
Path,
|
Path,
|
||||||
sizeof(Path) / sizeof(WCHAR));
|
sizeof(Path) / sizeof(WCHAR));
|
||||||
|
ok(Length > 0, "Length = %d\n", Length);
|
||||||
|
|
||||||
FileName = wcsrchr(Path, '\\');
|
FileName = wcsrchr(Path, '\\');
|
||||||
Slash = wcsrchr(Path, L'/');
|
Slash = wcsrchr(Path, L'/');
|
||||||
|
@ -113,7 +114,7 @@ TestGetModuleFileNameW(VOID)
|
||||||
ok(Length < sizeof(Buffer) / sizeof(WCHAR), "Length = %lu\n", Length);
|
ok(Length < sizeof(Buffer) / sizeof(WCHAR), "Length = %lu\n", Length);
|
||||||
ok(Buffer[Length] == 0, "Buffer not null terminated\n");
|
ok(Buffer[Length] == 0, "Buffer not null terminated\n");
|
||||||
Relative = PathIsRelativeW(Buffer);
|
Relative = PathIsRelativeW(Buffer);
|
||||||
ok(Relative == FALSE, "GetModuleFileNameA returned relative path: %ls\n", Buffer);
|
ok(Relative == FALSE, "GetModuleFileNameW returned relative path: %ls\n", Buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
START_TEST(GetModuleFileName)
|
START_TEST(GetModuleFileName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue