Index: /trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp	(revision 43753)
+++ /trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp	(revision 43754)
@@ -1684,7 +1684,7 @@
                         if (u32HDSataPortCount < MAX_SATA_LUN_COUNT)
                             u32MaxPortCount = u32HDSataPortCount;
-                        for (size_t i = 1; i < u32MaxPortCount; i++)
-                            lPortLUN[i] = GetNextUsedSataPort(lPortUsed,
-                                                              lPortLUN[i-1],
+                        for (size_t j = 1; j < u32MaxPortCount; j++)
+                            lPortLUN[j] = GetNextUsedSataPort(lPortUsed,
+                                                              lPortLUN[j-1],
                                                               u32HDSataPortCount);
                         if (pBiosCfg)
