gimp: Typo fixes.

This commit is contained in:
Alexpux
2014-02-27 17:24:04 +04:00
parent 77e13a122c
commit eeaa8d08be
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ md5sums=('84c964aab7044489af69f7319bb59b47'
'd1e19159164cac7b39578a6b0bb02cbb'
'0df0c9c5f55012023894ed8b959c2fa9'
'34aba5cb94d368627bf17eb5aedee556'
'e2443c60ca1b896f96143e06bbcebd19')
'0d5c523e91fbfbab43c2f12447ccfebc')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"

View File

@@ -4,14 +4,14 @@
if (p_SetDllDirectoryA)
(*p_SetDllDirectoryA) ("");
}
+ /* Add yourself to system path */
+ /* Add ourself to system path */
+ {
+ int result = 0;
+ static char progpath[PATH_MAX] = {'\0'};
+ char *path = getenv("PATH");
+ result = GetModuleFileNameA(NULL, progpath, PATH_MAX);
+ if (path) {
+ /* Add path of executable/dll to system path. */
+ /* Add path of executable to system path. */
+ char *module_path = progpath;
+ char *new_path = alloca(strlen("PATH=")+strlen(module_path)+1+strlen(path)+1);
+ if (new_path) {