mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 19:27:00 +00:00
[KERNEL32_WINETEST] Addendum to r65511.
svn path=/trunk/; revision=65512
This commit is contained in:
parent
3be4abc045
commit
0abf72fdee
1 changed files with 59 additions and 0 deletions
|
@ -2167,6 +2167,65 @@ todo_wine
|
||||||
handle = pCreateActCtxA(&actctx);
|
handle = pCreateActCtxA(&actctx);
|
||||||
ok(handle == INVALID_HANDLE_VALUE, "got handle %p\n", handle);
|
ok(handle == INVALID_HANDLE_VALUE, "got handle %p\n", handle);
|
||||||
ok(GetLastError() == ERROR_RESOURCE_TYPE_NOT_FOUND, "got error %d\n", GetLastError());
|
ok(GetLastError() == ERROR_RESOURCE_TYPE_NOT_FOUND, "got error %d\n", GetLastError());
|
||||||
|
|
||||||
|
/* load manifest from lpAssemblyDirectory directory */
|
||||||
|
write_manifest("testdir.manifest", manifest1);
|
||||||
|
GetTempPathA(sizeof(path)/sizeof(path[0]), path);
|
||||||
|
SetCurrentDirectoryA(path);
|
||||||
|
strcat(path, "assembly_dir");
|
||||||
|
strcpy(dir, path);
|
||||||
|
strcat(path, "\\testdir.manifest");
|
||||||
|
|
||||||
|
memset(&actctx, 0, sizeof(actctx));
|
||||||
|
actctx.cbSize = sizeof(actctx);
|
||||||
|
actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
|
||||||
|
actctx.lpSource = "testdir.manifest";
|
||||||
|
actctx.lpAssemblyDirectory = dir;
|
||||||
|
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
|
handle = pCreateActCtxA(&actctx);
|
||||||
|
ok(handle == INVALID_HANDLE_VALUE, "got handle %p\n", handle);
|
||||||
|
ok(GetLastError()==ERROR_PATH_NOT_FOUND ||
|
||||||
|
broken(GetLastError()==ERROR_FILE_NOT_FOUND) /* WinXP */,
|
||||||
|
"got error %d\n", GetLastError());
|
||||||
|
|
||||||
|
CreateDirectoryA(dir, NULL);
|
||||||
|
memset(&actctx, 0, sizeof(actctx));
|
||||||
|
actctx.cbSize = sizeof(actctx);
|
||||||
|
actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
|
||||||
|
actctx.lpSource = "testdir.manifest";
|
||||||
|
actctx.lpAssemblyDirectory = dir;
|
||||||
|
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
|
handle = pCreateActCtxA(&actctx);
|
||||||
|
ok(handle == INVALID_HANDLE_VALUE, "got handle %p\n", handle);
|
||||||
|
ok(GetLastError() == ERROR_FILE_NOT_FOUND, "got error %d\n", GetLastError());
|
||||||
|
SetCurrentDirectoryW(work_dir);
|
||||||
|
|
||||||
|
write_manifest("assembly_dir\\testdir.manifest", manifest1);
|
||||||
|
memset(&actctx, 0, sizeof(actctx));
|
||||||
|
actctx.cbSize = sizeof(actctx);
|
||||||
|
actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
|
||||||
|
actctx.lpSource = "testdir.manifest";
|
||||||
|
actctx.lpAssemblyDirectory = dir;
|
||||||
|
|
||||||
|
handle = pCreateActCtxA(&actctx);
|
||||||
|
ok(handle != INVALID_HANDLE_VALUE, "got handle %p\n", handle);
|
||||||
|
pReleaseActCtx(handle);
|
||||||
|
|
||||||
|
memset(&actctx, 0, sizeof(actctx));
|
||||||
|
actctx.cbSize = sizeof(actctx);
|
||||||
|
actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
|
||||||
|
actctx.lpSource = path;
|
||||||
|
actctx.lpAssemblyDirectory = dir;
|
||||||
|
|
||||||
|
handle = pCreateActCtxA(&actctx);
|
||||||
|
ok(handle != INVALID_HANDLE_VALUE, "got handle %p\n", handle);
|
||||||
|
pReleaseActCtx(handle);
|
||||||
|
|
||||||
|
delete_manifest_file("testdir.manifest");
|
||||||
|
delete_manifest_file("assembly_dir\\testdir.manifest");
|
||||||
|
RemoveDirectoryA(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL init_funcs(void)
|
static BOOL init_funcs(void)
|
||||||
|
|
Loading…
Reference in a new issue