Fixed a problem when opening files on Linux

This commit is contained in:
Zane U. Ji 2014-05-18 21:19:10 +08:00
parent 0fe53c25b9
commit 7c8f818edb
1 changed files with 2 additions and 2 deletions

View File

@ -731,7 +731,7 @@ wxFileName WrapLibxml::URLToFileName ( const wxString &url )
return wxFileName ( url ); return wxFileName ( url );
do { do {
if ( uri->scheme == NULL || strcmp (uri->scheme, "file" ) ) if ( uri->scheme != NULL && strcmp (uri->scheme, "file" ) )
break; break;
#ifdef _MSC_VER #ifdef _MSC_VER
if ( uri->server && stricmp ( uri->server, "localhost") ) if ( uri->server && stricmp ( uri->server, "localhost") )
@ -758,6 +758,6 @@ wxFileName WrapLibxml::URLToFileName ( const wxString &url )
xmlFreeURI ( uri ); xmlFreeURI ( uri );
return wxFileName(); return wxFileName(url);
#endif // wxCHECK_VERSION(2,9,0) #endif // wxCHECK_VERSION(2,9,0)
} }