mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[KERNEL32_APITEST]
Make PrivMoveFileIdentityW test work even if kernel32_apitest.exe isn't in current directory svn path=/trunk/; revision=67278
This commit is contained in:
@@ -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,9 +60,18 @@ TestPrivMoveFileIdentityW(VOID)
|
||||
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))
|
||||
{
|
||||
win_skip("Failed querying self\n");
|
||||
|
||||
Reference in New Issue
Block a user