Skip to content

Commit

Permalink
As part of Jorgen's code review of this function I added a call to Lo…
Browse files Browse the repository at this point in the history
…adLibrary so the refcounts would be consistent between Windows and Posix. Then I forgot to include the check that the thing was actually loaded and caused it to be loaded all the time. Oops.

CR: AaronL
  • Loading branch information
slouken committed Feb 13, 2014
1 parent 1fa4939 commit 567b5ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loadso/windows/SDL_sysloadso.c
Expand Up @@ -55,7 +55,8 @@ SDL_GetLoadedObject(const char *sofile)
/* if we got a handle, call LoadLibrary to get
* it again with the ref count incremented.
* We do this to match the dlopen version of this function */
handle = (void *)LoadLibrary( tstr );
if( handle != NULL )
handle = (void *)LoadLibrary( tstr );

SDL_free(tstr);

Expand Down

0 comments on commit 567b5ba

Please sign in to comment.