diff --git a/SimpleIni.h b/SimpleIni.h index ba272a6..cd657c9 100644 --- a/SimpleIni.h +++ b/SimpleIni.h @@ -1858,6 +1858,11 @@ bool CSimpleIniTempl:: return true; } + // a value that is itself quoted needs wrapping, or the loader strips its quotes + if (a_pData > pStart + 1 && *pStart == '"' && *(a_pData - 1) == '"') { + return true; + } + return false; }