Explorar o código

Rolled back my LoadLibrary change. The first failed call causes a dialog to pop up in Windows apps (but not console apps) and that's really bad. I'll have to deal with this in my app.

Sam Lantinga %!s(int64=12) %!d(string=hai) anos
pai
achega
d0a57ea2b5
Modificáronse 1 ficheiros con 0 adicións e 13 borrados
  1. 0 13
      src/loadso/windows/SDL_sysloadso.c

+ 0 - 13
src/loadso/windows/SDL_sysloadso.c

@@ -34,19 +34,6 @@ SDL_LoadObject(const char *sofile)
 {
 {
     LPTSTR tstr = WIN_UTF8ToString(sofile);
     LPTSTR tstr = WIN_UTF8ToString(sofile);
     void *handle = (void *) LoadLibrary(tstr);
     void *handle = (void *) LoadLibrary(tstr);
-
-	/* By default LoadLibrary uses the current working directory 
-	* as the first item on the search path for implicit dependencies
-	* of whatever it's loading. That is somewhat inconsistent with
-	* what dlopen does on other platforms, so we will try again
-	* with LoadLibraryEx and a slightly different search path. This
-	* causes Windows to search for dependencies in the directory 
-	* that the module itself lives in. */
-	if(handle == NULL)
-	{
-		handle = (void *) LoadLibraryEx(tstr, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
-	}
-
     SDL_free(tstr);
     SDL_free(tstr);
 
 
     /* Generate an error message if all loads failed */
     /* Generate an error message if all loads failed */