Backed out changeset accd95d7ba9d. [OS/2] fix build break following bug 488181

This commit is contained in:
Josh Aas 2009-05-16 21:08:41 -04:00
parent cf6ff7984f
commit 1b75333222

View File

@ -214,7 +214,7 @@ nsresult nsPluginFile::LoadPlugin( PRLibrary *&outLibrary)
// Obtains all of the information currently available for this plugin. // Obtains all of the information currently available for this plugin.
nsresult nsPluginFile::GetPluginInfo( nsPluginInfo &info) nsresult nsPluginFile::GetPluginInfo( nsPluginInfo &info)
{ {
nsresult rv = NS_ERROR_FAILURE; nsresult rc = NS_ERROR_FAILURE;
HMODULE hPlug = 0; // Need a HMODULE to query resource statements HMODULE hPlug = 0; // Need a HMODULE to query resource statements
char failure[ CCHMAXPATH] = ""; char failure[ CCHMAXPATH] = "";
APIRET ret; APIRET ret;
@ -262,14 +262,14 @@ nsresult nsPluginFile::GetPluginInfo( nsPluginInfo &info)
info.fFullPath = PL_strdup(path.get()); info.fFullPath = PL_strdup(path.get());
info.fFileName = PL_strdup(fileName.get()); info.fFileName = PL_strdup(fileName.get());
rv = NS_OK; rc = NS_OK;
break; break;
} }
if( 0 != hPlug) if( 0 != hPlug)
DosFreeModule( hPlug); DosFreeModule( hPlug);
return rv; return rc;
} }
nsresult nsPluginFile::FreePluginInfo(nsPluginInfo& info) nsresult nsPluginFile::FreePluginInfo(nsPluginInfo& info)