msvc: Compare thread id instead of handlers to check if it is already registered.
This commit is contained in:
parent
9eaf33656e
commit
5758af7756
1 changed files with 3 additions and 1 deletions
|
|
@ -363,7 +363,9 @@ ecl_import_current_thread(cl_object name, cl_object bindings)
|
|||
cl_index i, size;
|
||||
for (i = 0, size = processes->vector.fillp; i < size; i++) {
|
||||
cl_object p = processes->vector.self.t[i];
|
||||
if (!Null(p) && p->process.thread == current)
|
||||
if (!Null(p)
|
||||
&&
|
||||
GetThreadId(p->process.thread) == GetThreadId(current))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue