a few less #ifdef's

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5955 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-03-28 09:47:26 +00:00
parent 49276c77c7
commit 501dc3c699
3 changed files with 26 additions and 47 deletions

View file

@ -328,19 +328,15 @@ void my_convert_free(char *converted_path)
int my_open(const char *pathname, int flags)
{
char *converted_pathname = my_convert(pathname);
int result = open(converted_pathname, flags);
my_convert_free(converted_pathname);
PATH_CONVERT(pathname);
int result = open(pathname, flags);
return result;
}
FILE *my_fopen(const char *path, const char *mode)
{
char *converted_path = my_convert(path);
FILE *result = fopen(converted_path, mode);
my_convert_free(converted_path);
PATH_CONVERT(path);
FILE *result = fopen(path, mode);
return result;
}
#endif//!_WIN32