Harm's patch to fix a crash of wxPoem sample on termination
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -249,7 +249,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, char **value,
|
|||||||
wxXMergeDatabases();
|
wxXMergeDatabases();
|
||||||
|
|
||||||
XrmDatabase database;
|
XrmDatabase database;
|
||||||
if (file) {
|
if ( !file.IsEmpty() ) {
|
||||||
char buffer[500];
|
char buffer[500];
|
||||||
// Is this right? Trying to get it to look in the user's
|
// Is this right? Trying to get it to look in the user's
|
||||||
// home directory instead of current directory -- JACS
|
// home directory instead of current directory -- JACS
|
||||||
|
@@ -249,7 +249,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, char **value,
|
|||||||
wxXMergeDatabases();
|
wxXMergeDatabases();
|
||||||
|
|
||||||
XrmDatabase database;
|
XrmDatabase database;
|
||||||
if (file) {
|
if ( !file.IsEmpty() ) {
|
||||||
char buffer[500];
|
char buffer[500];
|
||||||
// Is this right? Trying to get it to look in the user's
|
// Is this right? Trying to get it to look in the user's
|
||||||
// home directory instead of current directory -- JACS
|
// home directory instead of current directory -- JACS
|
||||||
|
Reference in New Issue
Block a user