Skip to content

Commit

Permalink
Add a missing reset to error code
Browse files Browse the repository at this point in the history
  • Loading branch information
shym committed Mar 21, 2023
1 parent 69aabd3 commit 6a5438a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flexdll.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,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);
Expand Down

0 comments on commit 6a5438a

Please sign in to comment.