added wxGetFullModuleName(); use it instead of calling ::GetModuleFileName() directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -77,15 +77,8 @@ WXDLLEXPORT int wxEntry(HINSTANCE hInstance,
|
||||
}
|
||||
|
||||
#ifdef __WXWINCE__
|
||||
// WinCE doesn't insert the program itself, so let's
|
||||
// do it here.
|
||||
wxString programName;
|
||||
|
||||
if ( ::GetModuleFileName( (HMODULE) wxGetInstance(), wxStringBuffer(programName, MAX_PATH), MAX_PATH ) == 0)
|
||||
{
|
||||
wxLogLastError(_T("GetModuleFileName"));
|
||||
}
|
||||
args.Insert(programName, 0);
|
||||
// WinCE doesn't insert the program itself, so do it ourselves.
|
||||
args.Insert(wxGetFullModuleName(), 0);
|
||||
#endif
|
||||
|
||||
int argc = args.GetCount();
|
||||
|
Reference in New Issue
Block a user