Index: /trunk/src/VBox/Runtime/nt/RTNtPathExpand8dot3Path.cpp
===================================================================
--- /trunk/src/VBox/Runtime/nt/RTNtPathExpand8dot3Path.cpp	(revision 64738)
+++ /trunk/src/VBox/Runtime/nt/RTNtPathExpand8dot3Path.cpp	(revision 64739)
@@ -89,5 +89,8 @@
             puBuf = (union fix8dot3tmp *)RTMemAlloc(sizeof(*puBuf));
             if (!puBuf)
+            {
+                rc = -VERR_NO_MEMORY;
                 break;
+            }
         }
 
@@ -175,4 +178,6 @@
             NtClose(hDir);
         }
+        else
+            rc = -RTErrConvertFromNtStatus(rcNt);
 
         /* Advance */
Index: /trunk/src/VBox/Runtime/testcase/tstRTNtPath-1.cpp
===================================================================
--- /trunk/src/VBox/Runtime/testcase/tstRTNtPath-1.cpp	(revision 64738)
+++ /trunk/src/VBox/Runtime/testcase/tstRTNtPath-1.cpp	(revision 64739)
@@ -199,6 +199,6 @@
 
         tstTraverse8dot3(&This, cch, cch, 0);
-
-
+        RTTestIPrintf(RTTESTLVL_ALWAYS, "info: cEntries=%u cHits=%u cFirstClassHits=%u\n",
+                      This.cEntries, This.cHits, This.cFirstClassHits);
     }
     else
