Skip to content

Commit

Permalink
i#1785: drinject should fail if app is not reg: return false if no co…
Browse files Browse the repository at this point in the history
…nfig found

- return false in dr_inject_process_inject if no config for app is found

Fixes #1785

Review-URL: https://codereview.appspot.com/264670043
  • Loading branch information
zhaoqin committed Oct 5, 2015
1 parent 77d079f commit b205528
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/win32/injector.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,6 @@ dr_inject_process_inject(void *data, bool force_injection,
}
}

if (!inject)
return false;

if (library_path == NULL) {
int err;
err = get_process_parameter(info->pi.hProcess,
Expand All @@ -858,6 +855,9 @@ dr_inject_process_inject(void *data, bool force_injection,
library_path = library_path_buf;
}

if (!inject)
return false;

#ifdef PARAMS_IN_REGISTRY
/* don't set registry from environment if using debug key */
if (!info->using_debugger_injection) {
Expand Down

0 comments on commit b205528

Please sign in to comment.