Use MAXPATHLEN, not PATH_MAX which isn't defined with MSVC.

2001-03-01  Tor Lillqvist  <tml@iki.fi>

	* gutils.c (g_find_program_in_path): (Win32): Use MAXPATHLEN,
	not PATH_MAX which isn't defined with MSVC.
This commit is contained in:
Tor Lillqvist
2001-03-01 10:59:55 +00:00
committed by Tor Lillqvist
parent 00988d0d76
commit d4960b2895
10 changed files with 18 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ g_find_program_in_path (const gchar *program)
#else
{
gchar *tmp;
gchar moddir[PATH_MAX], sysdir[PATH_MAX], windir[PATH_MAX];
gchar moddir[MAXPATHLEN], sysdir[MAXPATHLEN], windir[MAXPATHLEN];
GetModuleFileName (NULL, moddir, sizeof (moddir));
tmp = g_path_get_dirname (moddir);