VirtualBox

Changeset 58155 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Oct 9, 2015 3:09:24 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103263
Message:

check the index first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/direnum-win.cpp

    r57358 r58155  
    311311        PRTUTF16  pwszDst = pDirEntry->wszShortName;
    312312        uint32_t  off = 0;
    313         while (pwszSrc[off] && off < RT_ELEMENTS(pDirEntry->wszShortName) - 1U)
     313        while (off < RT_ELEMENTS(pDirEntry->wszShortName) - 1U && pwszSrc[off])
    314314        {
    315315            pwszDst[off] = pwszSrc[off];
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette