Changed one thing to remove a warning

Dependents:   SDFileSystem

Fork of FATFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
byiu3
Date:
Sat Mar 14 15:45:19 2015 +0000
Parent:
4:3ff2606d5713
Commit message:
Changed something, i can't remember what

Changed in this revision

ChaN/ff.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 3ff2606d5713 -r 818894218410 ChaN/ff.cpp
--- a/ChaN/ff.cpp	Thu Aug 28 13:15:31 2014 +0100
+++ b/ChaN/ff.cpp	Sat Mar 14 15:45:19 2015 +0000
@@ -1684,8 +1684,9 @@
         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))
+            if (!IsDBCS2(b)) {
                 return FR_INVALID_NAME; /* Reject invalid sequence */
+            }
             w = (w << 8) + b;           /* Create a DBC */
         }
         w = ff_convert(w, 1);           /* Convert ANSI/OEM to Unicode */