more win32 fixes

pull/1/head
Bram Matthys 8 years ago
parent 84a61c6d8e
commit 8df116f2f1

@ -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

@ -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");

@ -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);

Loading…
Cancel
Save