Author: pschweitzer
Date: Sat Apr 18 21:30:15 2015
New Revision: 67278
URL:
http://svn.reactos.org/svn/reactos?rev=67278&view=rev
Log:
[KERNEL32_APITEST]
Make PrivMoveFileIdentityW test work even if kernel32_apitest.exe isn't in current
directory
Modified:
trunk/rostests/apitests/kernel32/PrivMoveFileIdentityW.c
Modified: trunk/rostests/apitests/kernel32/PrivMoveFileIdentityW.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/kernel32/PrivMov…
==============================================================================
--- trunk/rostests/apitests/kernel32/PrivMoveFileIdentityW.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/kernel32/PrivMoveFileIdentityW.c [iso-8859-1] Sat Apr 18
21:30:15 2015
@@ -13,7 +13,6 @@
#include <ndk/rtltypes.h>
static const WCHAR FileName[] = L"TestFile.xxx";
-static const WCHAR Self[] = L"kernel32_apitest.exe";
static BOOL (WINAPI * pPrivMoveFileIdentityW)(LPCWSTR, LPCWSTR, DWORD);
@@ -61,8 +60,17 @@
LARGE_INTEGER CreationTime, EndOfFile;
HANDLE hDest;
NTSTATUS Status;
+ WCHAR Self[MAX_PATH];
DeleteFileW(FileName);
+
+ if (GetModuleFileNameW(NULL, Self, MAX_PATH) == 0)
+ {
+ win_skip("Failed finding self\n");
+ return;
+ }
+
+ printf("%S\n", Self);
if (!QueryFileInfo(Self, &FileBasicInfo, &FileStandardInfo))
{