Author: tfaber
Date: Sat Feb 9 10:56:28 2013
New Revision: 58295
URL:
http://svn.reactos.org/svn/reactos?rev=58295&view=rev
Log:
[KERNEL32_APITEST]
- Fix GCC 4.7 warning; fix a typo spotted by Edijus
Modified:
trunk/rostests/apitests/kernel32/CMakeLists.txt
trunk/rostests/apitests/kernel32/GetModuleFileName.c
Modified: trunk/rostests/apitests/kernel32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/kernel32/CMakeLi…
==============================================================================
--- trunk/rostests/apitests/kernel32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/apitests/kernel32/CMakeLists.txt [iso-8859-1] Sat Feb 9 10:56:28 2013
@@ -1,12 +1,10 @@
-
-add_definitions(-D_DLL -D__USE_CRTIMP)
list(APPEND SOURCE
GetCurrentDirectory.c
GetDriveType.c
GetModuleFileName.c
lstrcpynW.c
- MultiByteToWideChar.c
+ MultiByteToWideChar.c
SetCurrentDirectory.c
SetUnhandledExceptionFilter.c
testlist.c)
Modified: trunk/rostests/apitests/kernel32/GetModuleFileName.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/kernel32/GetModu…
==============================================================================
--- trunk/rostests/apitests/kernel32/GetModuleFileName.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/kernel32/GetModuleFileName.c [iso-8859-1] Sat Feb 9 10:56:28
2013
@@ -35,6 +35,7 @@
-1,
Path,
sizeof(Path) / sizeof(WCHAR));
+ ok(Length > 0, "Length = %d\n", Length);
FileName = wcsrchr(Path, '\\');
Slash = wcsrchr(Path, L'/');
@@ -113,7 +114,7 @@
ok(Length < sizeof(Buffer) / sizeof(WCHAR), "Length = %lu\n", Length);
ok(Buffer[Length] == 0, "Buffer not null terminated\n");
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)