mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 18:54:25 +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:
parent
d367e2415e
commit
f656eab188
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue