Code review and fixes.
This commit is contained in:
1 parent
b51a08e7cc
commit
f9aa0dabed
9 files changed
+58
-20
No files matched your search
@@ -27,11 +27,12 @@ int main(void) {
|
||||
static WineAccessHookExclusions upper;
|
||||
assert(wine_access_hook_exclusions_add(&upper, name));
|
||||
assert(!wine_access_hooks_allowed(&upper, process));
|
||||
WCHAR listed[32768] = L"Other Game.exe;";
|
||||
WCHAR listed[32768] = L"Other; Game.exe\n";
|
||||
lstrcatW(listed, name);
|
||||
lstrcatW(listed, L";Third Game.exe");
|
||||
lstrcatW(listed, L"\nThird Game.exe");
|
||||
static WineAccessHookExclusions multiple;
|
||||
assert(wine_access_hook_exclusions_parse(&multiple, listed) == 3);
|
||||
assert(wine_access_hook_exclusions_match(&multiple, L"Other; Game.exe"));
|
||||
assert(!wine_access_hooks_allowed(&multiple, process));
|
||||
puts("PASS: hook exclusions check the actual process before attachment");
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user