diff --git a/src/loadso/windows/SDL_sysloadso.c b/src/loadso/windows/SDL_sysloadso.c index ac870d90b..4ff36af0e 100644 --- a/src/loadso/windows/SDL_sysloadso.c +++ b/src/loadso/windows/SDL_sysloadso.c @@ -55,8 +55,7 @@ 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 */ - if( handle != NULL ) - handle = (void *)LoadLibrary( tstr ); + handle = (void *)LoadLibrary( tstr ); SDL_free(tstr);