From 2eda2e95cae24115d2c32d7d6096730875cdd53c Mon Sep 17 00:00:00 2001 From: stskeeps Date: Tue, 12 Jun 2007 21:30:08 +0000 Subject: [PATCH] - #0002475 reported by aquanight on detecting \'s in module filenames on win32 and not do ./module for it --- Changes | 2 ++ src/modules.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Changes b/Changes index cdeee31f8..9add30e69 100644 --- a/Changes +++ b/Changes @@ -1776,3 +1776,5 @@ MOTDs CommandAdd's through a huge patch. This may break some things, so heads up. From now on add_Command is unsafe land for modules and may be removed without warning. +- #0002475 reported by aquanight on detecting \'s in module filenames on + win32 and not do ./module for it diff --git a/src/modules.c b/src/modules.c index 9b11e62df..8edab8d99 100644 --- a/src/modules.c +++ b/src/modules.c @@ -322,7 +322,11 @@ char *Module_Create(char *path_) tmppath = unreal_mktemp("tmp", unreal_getfilename(path)); if (!tmppath) return "Unable to create temporary file!"; +#ifndef _WIN32 if(!strchr(path, '/')) +#else + if (!strchr(path, '\\') && !strchr(path, '/') +#endif { path = MyMalloc(strlen(path) + 3); strcpy(path, "./");