diff options
Diffstat (limited to 'src/win32/windows.cpp')
-rw-r--r-- | src/win32/windows.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp index 9aaa333ff..a4c6eff49 100644 --- a/src/win32/windows.cpp +++ b/src/win32/windows.cpp @@ -56,11 +56,11 @@ USHORT WindowsGetLanguage(const Anope::string &lang) for (int i = 0; i < sizeof(WindowsLanguages) / sizeof(WindowsLanguage); ++i) { WindowsLanguage &l = WindowsLanguages[i]; - + if (lang == l.languageName || !lang.find(l.languageName + ".")) return l.windowsLanguageName; } - + return LANG_NEUTRAL; } @@ -73,10 +73,10 @@ int gettimeofday(timeval *tv, void *) { SYSTEMTIME st; GetSystemTime(&st); - + tv->tv_sec = Anope::CurTime; tv->tv_usec = st.wMilliseconds; - + return 0; } @@ -248,7 +248,7 @@ int mkstemp(char *input) errno = EEXIST; return -1; } - + int fd = open(input, O_WRONLY | O_CREAT, S_IREAD | S_IWRITE); return fd; } |