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, '\\');