Index: /trunk/src/VBox/Runtime/r3/path.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/path.cpp	(revision 19928)
+++ /trunk/src/VBox/Runtime/r3/path.cpp	(revision 19929)
@@ -759,5 +759,6 @@
         {
 #if defined (RT_OS_OS2) || defined (RT_OS_WINDOWS)
-            if (    pszPath[1] == ':'
+            if (    (size_t)(pszPathEnd - pszPath) == 2
+                &&  pszPath[1] == ':'
                 &&  RT_C_IS_ALPHA(pszPath[0]))
             {
Index: /trunk/src/VBox/Runtime/testcase/tstPath.cpp
===================================================================
--- /trunk/src/VBox/Runtime/testcase/tstPath.cpp	(revision 19928)
+++ /trunk/src/VBox/Runtime/testcase/tstPath.cpp	(revision 19929)
@@ -269,4 +269,5 @@
         "dir//",                "//file",               "dir/file",
         "dir///",               "///file",              "dir/file",
+        "/bin/testcase",        "foo.r0",               "/bin/testcase/foo.r0",
 #if defined (RT_OS_OS2) || defined (RT_OS_WINDOWS)
         "/",                    "\\",                   "/",
@@ -282,4 +283,5 @@
         "C:\\",                 "/autoexec.bat",        "C:\\autoexec.bat",
         "C:\\\\",               "autoexec.bat",         "C:\\autoexec.bat",
+        "E:\\bin\\testcase",    "foo.r0",               "E:\\bin\\testcase/foo.r0",
 #endif
     };
