diff options
-rw-r--r-- | src/Intrinsic.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Intrinsic.c b/src/Intrinsic.c index 3a80cb3..a86884e 100644 --- a/src/Intrinsic.c +++ b/src/Intrinsic.c @@ -1315,7 +1315,11 @@ static void FillInLangSubs( */ static char *implementation_default_path(void) { -#if defined(__UNIXOS2__) +#if defined(WIN32) + static char xfilesearchpath[] = ""; + + return xfilesearchpath; +#elif defined(__UNIXOS2__) /* if you know how to pass % thru the compiler let me know */ static char xfilesearchpath[] = XFILESEARCHPATHDEFAULT; static Bool fixed; @@ -1379,11 +1383,12 @@ String XtResolvePathname( defaultPath = impl_default; } path = defaultPath; -#else - path = ""; /* NULL would kill us later */ #endif /* VMS */ } + if (path == NULL) + path = ""; /* NULL would kill us later */ + if (filename == NULL) { filename = XrmClassToString(pd->class); } |