瀏覽代碼

Back out changelist 2026006

Sam Lantinga 11 年之前
父節點
當前提交
f5d1559b51
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/loadso/windows/SDL_sysloadso.c

+ 1 - 2
src/loadso/windows/SDL_sysloadso.c

@@ -55,8 +55,7 @@ SDL_GetLoadedObject(const char *sofile)
 	/* if we got a handle, call LoadLibrary to get
 	/* if we got a handle, call LoadLibrary to get
 	*  it again with the ref count incremented.
 	*  it again with the ref count incremented.
 	* We do this to match the dlopen version of this function */
 	* 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);
     SDL_free(tstr);