Fixing bug 502723 - updater checks the wrong MAX_PATH define.
authorNick Kreeger <nick.kreeger@park.edu>
Mon, 06 Jul 2009 15:31:23 -0700
changeset 30041 a5dfd04812d820e905a1847dc7a4283cb3562c28
parent 30010 33475a1b57461caa594985eca52d59868abad515
child 30042 475b8583efe4629f01df7ed048caa21f364bf52b
push idunknown
push userunknown
push dateunknown
bugs502723
milestone1.9.2a1pre
Fixing bug 502723 - updater checks the wrong MAX_PATH define. Patch my Mook <mook@songbirdnest.com>. r=robstrong.
toolkit/mozapps/update/src/updater/updater.cpp
--- a/toolkit/mozapps/update/src/updater/updater.cpp
+++ b/toolkit/mozapps/update/src/updater/updater.cpp
@@ -115,17 +115,17 @@ void LaunchChild(int argc, char **argv);
 
 #ifndef SSIZE_MAX
 # define SSIZE_MAX LONG_MAX
 #endif
 
 #ifndef MAXPATHLEN
 # ifdef PATH_MAX
 #  define MAXPATHLEN PATH_MAX
-# elif defined(_MAX_PATH)
+# elif defined(MAX_PATH)
 #  define MAXPATHLEN MAX_PATH
 # elif defined(_MAX_PATH)
 #  define MAXPATHLEN _MAX_PATH
 # elif defined(CCHMAXPATH)
 #  define MAXPATHLEN CCHMAXPATH
 # else
 #  define MAXPATHLEN 1024
 # endif