From 34b19e67fe164ea1d965565f0a34a71b88dca356 Mon Sep 17 00:00:00 2001 From: Peter Soetens Date: Thu, 26 Aug 2010 15:45:26 +0200 Subject: [PATCH] win32: fix erroneaous CloseHandle() in dlsym wrapper Signed-off-by: Peter Soetens --- rtt/os/win32/dlfcn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rtt/os/win32/dlfcn.c b/rtt/os/win32/dlfcn.c index 34d30f036..cc8a9ea29 100644 --- a/rtt/os/win32/dlfcn.c +++ b/rtt/os/win32/dlfcn.c @@ -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 )