mirror of
https://github.com/reactos/reactos.git
synced 2025-07-02 01:01:22 +00: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:
parent
9624a5e18b
commit
6d0f733ac7
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue