From 25b0e7c89788b36fe415a4fc707fa5bc22b3e9dc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Jan 2005 19:43:55 +0000 Subject: [PATCH] factored out wxGetFullModuleName(HMODULE) from wxGetFullModuleName() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/private.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index a7b41605a0..cdb8b5e953 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -519,13 +519,13 @@ extern "C" WXDLLIMPEXP_BASE void wxSetInstance(HINSTANCE hInst); -// return the full name of the program file -inline wxString wxGetFullModuleName() +// return the full path of the given module +inline wxString wxGetFullModuleName(HMODULE hmod) { wxString fullname; if ( !::GetModuleFileName ( - (HMODULE)wxGetInstance(), + hmod, wxStringBuffer(fullname, MAX_PATH), MAX_PATH ) ) @@ -536,6 +536,12 @@ inline wxString wxGetFullModuleName() return fullname; } +// return the full path of the program file +inline wxString wxGetFullModuleName() +{ + return wxGetFullModuleName((HMODULE)wxGetInstance()); +} + #if wxUSE_GUI // cursor stuff -- 2.47.2