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 Apr 19, 2023
1 parent 4e496f0 commit 95473e8
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 @@ -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);
Expand Down

0 comments on commit 95473e8

Please sign in to comment.