From 9cf1444eb7888f2d942d220f938aa893396a8a1b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Apr 2018 20:51:18 +0300 Subject: g_hInstance incapulated into PLUGIN<>, no need in the separate variable --- plugins/Quotes/src/CreateFilePath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Quotes/src/CreateFilePath.cpp') diff --git a/plugins/Quotes/src/CreateFilePath.cpp b/plugins/Quotes/src/CreateFilePath.cpp index 6c73da75b0..f2a28621fb 100644 --- a/plugins/Quotes/src/CreateFilePath.cpp +++ b/plugins/Quotes/src/CreateFilePath.cpp @@ -19,7 +19,7 @@ void prepare_name(tstring& rsName) tstring CreateFilePath(const tstring& rsName) { wchar_t szPath[_MAX_PATH]; - ::GetModuleFileName(g_hInstance, szPath, _MAX_PATH); + ::GetModuleFileName(g_plugin.getInst(), szPath, _MAX_PATH); wchar_t* p = wcsrchr(szPath, '\\'); if (p) -- cgit v1.2.3