Index: /trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp	(revision 33788)
+++ /trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp	(revision 33789)
@@ -688,7 +688,7 @@
                                      DirEntry.szName) >= 0)
                     {
-                        if (!RTStrAPrintf(&pszFileDest, "%s%s",
-                                          pszSubDir ? pszSubDir : "",
-                                          DirEntry.szName) >= 0)
+                        if (RTStrAPrintf(&pszFileDest, "%s%s",
+                                         pszSubDir ? pszSubDir : "",
+                                         DirEntry.szName) <= 0)
                         {
                             rc = VERR_NO_MEMORY;
@@ -801,5 +801,5 @@
                                                pszFilter,
                                                uFlags, pcObjects, pList);
-                    if (*pcObjects == 0)
+                    if (RT_SUCCESS(rc) && *pcObjects == 0)
                         rc = VERR_NOT_FOUND;
                 }
