mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user