From f4e683fc6bd6ac76f9979f49d737588b6ddf16b0 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 14 11月 2020 22:13:13 +0800
Subject: [PATCH] windows smbios

---
 src/library/ini/SimpleIni.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/library/ini/SimpleIni.h b/src/library/ini/SimpleIni.h
index 05e2631..7142085 100644
--- a/src/library/ini/SimpleIni.h
+++ b/src/library/ini/SimpleIni.h
@@ -223,7 +223,7 @@
 # include <iostream>
 #endif // SI_SUPPORT_IOSTREAMS
 
-#ifdef _DEBUG
+#ifndef NDEBUG
 # ifndef assert
 #  include <cassert>
 # endif
@@ -1912,7 +1912,7 @@
         if (pComment) {
             DeleteString(a_pComment);
             a_pComment = pComment;
-            CopyString(a_pComment);
+            (void)CopyString(a_pComment);
         }
         Delete(a_pSection, a_pKey);
         iKey = keyval.end();
@@ -2489,6 +2489,9 @@
         bNeedNewLine = true;
     }
 
+    // Append new empty line
+    a_oOutput.Write(SI_NEWLINE_A);
+
     return SI_OK;
 }
 

--
Gitblit v1.9.1