From 36aad1e526e56a8ea03f830a39bae56a65635484 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Sun, 16 Jan 2005 18:19:29 +0000 Subject: [PATCH] Bug 278306 - Cleanup comparison in GRE_GetCurrentProcessDirectory. r=dougt p=116057@bacon.qcc.mass.edu (Justin Wood) git-svn-id: svn://10.0.0.236/trunk@167831 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp b/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp index ac0e1781a3a..ef01adb307f 100644 --- a/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp +++ b/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp @@ -133,7 +133,7 @@ GRE_GetCurrentProcessDirectory(char* buffer) #ifdef XP_WIN DWORD bufLength = ::GetModuleFileName(0, buffer, MAXPATHLEN); - if (bufLength == 0 || bufLength >= MAXPATHLEN) + if (bufLength == 0 || bufLength == MAXPATHLEN) return PR_FALSE; // chop of the executable name by finding the rightmost backslash unsigned char* lastSlash = _mbsrchr((unsigned char*) buffer, '\\');