diff --git a/src/generic/helphtml.cpp b/src/generic/helphtml.cpp
index 2005af7c14..1f3f59250f 100644
--- a/src/generic/helphtml.cpp
+++ b/src/generic/helphtml.cpp
@@ -166,7 +166,7 @@ wxHTMLHelpControllerBase::LoadFile(const wxString& ifile)
m_MapList = new wxList;
m_NumOfEntries = 0;
- FILE *input = wxFopen(mapFile.fn_str(),wxT("rt"));
+ FILE *input = wxFopen(mapFile,wxT("rt"));
if(! input)
return FALSE;
do