From 0990235d680febd78ea43aa59b5af9796aa22232 Mon Sep 17 00:00:00 2001 From: scarab Date: Mon, 14 Jul 2008 23:08:45 +0000 Subject: -- tuxanci na win behaji -- pri spousteni nejprve krici toto (gdb): [New thread 6676.0x18d0] Error: dll starting at 0x77870000 not found. Error: dll starting at 0x75ec0000 not found. Error: dll starting at 0x77870000 not found. Error: dll starting at 0x779a0000 not found. 0x00416b49 in main () - a pote smrtici pri spousteni aren (gdb): Program received signal SIGSEGV, Segmentation fault. 0x77c3f217 in ntdll!RtlDecompressBuffer () from C:\Windows\system32\ntdll.dll git-svn-id: http://opensvn.csie.org/tuxanci_ng@142 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/director.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/base/director.c') diff --git a/src/base/director.c b/src/base/director.c index 1877a8b..fd89611 100755 --- a/src/base/director.c +++ b/src/base/director.c @@ -29,17 +29,22 @@ director_t* loadDirector(char *s) memset(new, 0, sizeof(director_t) ); new->list = newList(); - +#ifndef __WIN32__ if( s[0] == '/' ) +#else + if( s[1] == ':' ) +#endif { strcpy(path, s); } else { + // tohle je opravdu dobre... getcwd(path, STR_PATH_SIZE); - strcat(path, s+1); + strcat(path, "/"); + strcat(path, s); } - + printf("%s\n", path); new->path = strdup(path); dir = opendir(new->path); -- cgit v1.2.3