4.53 beta

This commit is contained in:
Igor Pavlov
2007-08-27 00:00:00 +00:00
committed by Kornel Lesiński
parent 33ccab7e72
commit 051769bbc5
360 changed files with 4658 additions and 5167 deletions

View File

@@ -0,0 +1,24 @@
// ProgramLocation.h
#include "StdAfx.h"
#include "ProgramLocation.h"
#include "Windows/FileName.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(L'\\');
if (pos < 0)
return false;
folder = folder.Left(pos + 1);
return true;
}