FFT actualizado

Fork of FATFileSystem by mbed official

Files at this revision

API Documentation at this revision

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 */