mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 17:15:00 -06:00
9.21
This commit is contained in:
committed by
Kornel Lesiński
parent
de4f8c22fe
commit
35596517f2
@@ -1,24 +1,3 @@
|
||||
// ProgramLocation.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "../../../../C/Types.h"
|
||||
|
||||
#include "ProgramLocation.h"
|
||||
|
||||
#include "Windows/DLL.h"
|
||||
|
||||
using namespace NWindows;
|
||||
|
||||
extern HINSTANCE g_hInstance;
|
||||
|
||||
bool GetProgramFolderPath(UString &folder)
|
||||
{
|
||||
if (!NDLL::MyGetModuleFileName(g_hInstance, folder))
|
||||
return false;
|
||||
int pos = folder.ReverseFind(WCHAR_PATH_SEPARATOR);
|
||||
if (pos < 0)
|
||||
return false;
|
||||
folder = folder.Left(pos + 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user