more win32 fixes

This commit is contained in:
Bram Matthys 2015-06-26 16:56:59 +02:00
parent 84a61c6d8e
commit 8df116f2f1
3 changed files with 3 additions and 3 deletions
include/win32
src

View file

@ -50,7 +50,7 @@
#define PERMDATADIR "data"
#define CACHEDIR "cache"
#define TMPDIR "tmp"
#define PIDFILE PERMDATA"/unrealircd.pid"
#define PIDFILE PERMDATADIR"/unrealircd.pid"
#define NO_U_TYPES
#define NEED_U_INT32_T
#define PREFIX_AQ

View file

@ -1351,7 +1351,7 @@ int InitwIRCD(int argc, char *argv[])
do_version_check();
#ifndef CHROOTDIR
#if !defined(CHROOTDIR) && !defined(_WIN32)
if (chdir(CONFDIR)) {
# ifndef _WIN32
perror("chdir");

View file

@ -657,7 +657,7 @@ LRESULT CALLBACK FromFileDLG(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPar
lpopen.lpstrFile = path;
lpopen.nMaxFile = MAX_PATH;
lpopen.lpstrFileTitle = NULL;
lpopen.lpstrInitialDir = CFGPATH;
lpopen.lpstrInitialDir = CONFDIR;
lpopen.lpstrTitle = NULL;
lpopen.Flags = (OFN_ENABLESIZING|OFN_NONETWORKBUTTON|
OFN_OVERWRITEPROMPT);