[KERNEL32_APITEST] - Use the full path to the manifest files when testing FindActCtxSectionStringW. This is needed because in most cases they are not in the current directory.

svn path=/trunk/; revision=73509
This commit is contained in:
Giannis Adamopoulos 2017-01-06 22:06:53 +00:00
parent 9624a5e18b
commit 6d0f733ac7

View file

@ -79,8 +79,16 @@ struct assemply_data
HANDLE _CreateActCtxFromFile(LPCWSTR FileName, int line)
{
ACTCTXW ActCtx = {sizeof(ACTCTX), 0, FileName};
ACTCTXW ActCtx = {sizeof(ACTCTX)};
HANDLE h;
WCHAR buffer[MAX_PATH] , *separator;
ok (GetModuleFileNameW(NULL, buffer, MAX_PATH), "GetModuleFileName failed\n");
separator = wcsrchr(buffer, L'\\');
if (separator)
wcscpy(separator + 1, FileName);
ActCtx.lpSource = buffer;
SetLastError(0xdeaddead);
h = CreateActCtxW(&ActCtx);