Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/Common/LoadCodecs.cpp')
-rwxr-xr-xCPP/7zip/UI/Common/LoadCodecs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/CPP/7zip/UI/Common/LoadCodecs.cpp b/CPP/7zip/UI/Common/LoadCodecs.cpp
index 63b59045..a6c97aed 100755
--- a/CPP/7zip/UI/Common/LoadCodecs.cpp
+++ b/CPP/7zip/UI/Common/LoadCodecs.cpp
@@ -28,15 +28,21 @@ static const UINT kIconTypesResId = 100;
using namespace NWindows;
using namespace NFile;
+#ifdef _WIN32
extern HINSTANCE g_hInstance;
+#endif
static CSysString GetLibraryFolderPrefix()
{
+ #ifdef _WIN32
TCHAR fullPath[MAX_PATH + 1];
::GetModuleFileName(g_hInstance, fullPath, MAX_PATH);
CSysString path = fullPath;
int pos = path.ReverseFind(TEXT(CHAR_PATH_SEPARATOR));
return path.Left(pos + 1);
+ #else
+ return CSysString(); // FIX IT
+ #endif
}
#define kCodecsFolderName TEXT("Codecs")