Skip to content

Commit

Permalink
win32: fix erroneaous CloseHandle() in dlsym wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Soetens <[email protected]>
  • Loading branch information
Peter Soetens committed Aug 26, 2010
1 parent 60b5556 commit 34b19e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rtt/os/win32/dlfcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,9 @@ void *dlsym( void *handle, const char *name )
}
}
}

CloseHandle( hModule );
/* We don't need to close hModule since GetModuleHandle()
* Does not increment the refcount.
*/
}

if( symbol == NULL )
Expand Down

0 comments on commit 34b19e6

Please sign in to comment.