Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of FATFileSystem by
Revision 3:0a74a137a5cb, committed 2013-09-17
- Comitter:
- sherckuith
- Date:
- Tue Sep 17 01:31:35 2013 +0000
- Parent:
- 2:b6669c987c8e
- Commit message:
- asdf;
Changed in this revision
ChaN/ff.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ChaN/ff.cpp Thu Nov 29 10:56:08 2012 +0000 +++ b/ChaN/ff.cpp Tue Sep 17 01:31:35 2013 +0000 @@ -1684,9 +1684,11 @@ w &= 0xFF; if (IsDBCS1(w)) { /* Check if it is a DBC 1st byte (always false on SBCS cfg) */ b = (BYTE)p[si++]; /* Get 2nd byte */ - if (!IsDBCS2(b)) + w = (w << 8) + b; + if (!IsDBCS2(b)){ return FR_INVALID_NAME; /* Reject invalid sequence */ - w = (w << 8) + b; /* Create a DBC */ + } + /* Create a DBC */ } w = ff_convert(w, 1); /* Convert ANSI/OEM to Unicode */ if (!w) return FR_INVALID_NAME; /* Reject invalid code */