Commit f5d1559b51a5afb27686c1fce127ed8a590b0754

Sam Lantinga 2014-02-13T11:05:32

Back out changelist 2026006

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/loadso/windows/SDL_sysloadso.c b/src/loadso/windows/SDL_sysloadso.c
index ac870d9..4ff36af 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);