Skip to content

Commit

Permalink
Fix get_remote_process_ldr_status() failure check (#2656)
Browse files Browse the repository at this point in the history
get_remote_process_ldr_status() returns 'int' but remote_ldr_data was 'uint'
and 'remote_ldr_data >= 0' was always true
  • Loading branch information
maksqwe authored and fhahn committed Dec 4, 2017
1 parent 85630a0 commit c1fd846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/win32/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ align_page_boundary(dcontext_t *dcontext,
bool
is_newly_created_process(HANDLE process_handle)
{
uint remote_ldr_data;
int remote_ldr_data;
/* We check based on - trait 3) PEB.Ldr
* The Ldr entry is created by the running process itself later */

Expand Down

0 comments on commit c1fd846

Please sign in to comment.