summaryrefslogtreecommitdiff
path: root/source/q_shared.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-11-13 18:58:41 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-11-13 18:58:41 +0000
commitbbefa87db18f5b76dc67efa00b7cc798361480f3 (patch)
treeefc130fe3b4fe22f111154a8720491b756daa7bd /source/q_shared.c
parentd65e02496cd9873f5bb0297661b19762b44ddfec (diff)
Hacked the source to get it compile on Windows Mobile using CeGCC toolchain.
Fixed nasty memory corruption bug in UI scripts loading code. Fixed software refresh compilation issues on Windows. Inactive MVD channels are now completely destroyed and recreated once they are active again, and they are no longer allowed to stay in waiting state forever. Fixed delay buffer overflow resulting in fatal connection error. Preserve MVD stream flags in demos recorded on GTV server, and handle `inuse' flag correctly on players when writing gamestate. Updated documentation and Debian package descriptions.
Diffstat (limited to 'source/q_shared.c')
-rw-r--r--source/q_shared.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/q_shared.c b/source/q_shared.c
index f32ad5c..b97e987 100644
--- a/source/q_shared.c
+++ b/source/q_shared.c
@@ -1507,6 +1507,7 @@ char *Q_strchrnul( const char *s, int c ) {
void Q_setenv( const char *name, const char *value ) {
#ifdef _WIN32
+#ifndef __COREDLL__
if( !value ) {
value = "";
}
@@ -1515,6 +1516,7 @@ void Q_setenv( const char *name, const char *value ) {
#else
_putenv( va( "%s=%s", name, value ) );
#endif
+#endif
#else // _WIN32
if( value ) {
setenv( name, value, 1 );