From 95473e89f1f248a18f87c0e8229f8de0cdbcdd64 Mon Sep 17 00:00:00 2001 From: Samuel Hym Date: Tue, 21 Mar 2023 09:52:16 +0100 Subject: [PATCH] Add a missing reset to error code --- flexdll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/flexdll.c b/flexdll.c index 2aa40e6..b660e76 100644 --- a/flexdll.c +++ b/flexdll.c @@ -533,6 +533,7 @@ void *flexdll_dlopen(const char *file, int mode) err_t * err; err = get_tls_error(TLS_ERROR_RESET_LAST); if(err == NULL) return NULL; + err->code = 0; if (file) { nbr = MultiByteToWideChar(CP_THREAD_ACP, 0, file, -1, NULL, 0);