summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ilasm/grammar_after.cpp1
-rw-r--r--src/utilcode/safewrap.cpp5
2 files changed, 1 insertions, 5 deletions
diff --git a/src/ilasm/grammar_after.cpp b/src/ilasm/grammar_after.cpp
index 344e504f05..53d141db54 100644
--- a/src/ilasm/grammar_after.cpp
+++ b/src/ilasm/grammar_after.cpp
@@ -854,7 +854,6 @@ Its_An_Id:
TRUE, wzFullName,&pwz);
if(dw != 0)
{
- wzFullName.CloseBuffer((COUNT_T)(dw));
delete [] wzFile;
wzFile = wzFullName.GetCopyOfUnicodeString();
diff --git a/src/utilcode/safewrap.cpp b/src/utilcode/safewrap.cpp
index 4a6ecdb93c..294743d519 100644
--- a/src/utilcode/safewrap.cpp
+++ b/src/utilcode/safewrap.cpp
@@ -40,12 +40,9 @@ void ClrGetCurrentDirectory(SString & value)
// An actual API failure in GetCurrentDirectory failure should be very rare, so we'll throw on those.
if (len == 0)
- {
- value.CloseBuffer(0);
+ {
ThrowLastError();
}
-
- value.CloseBuffer();
}
// Nothrowing wrapper.