diff options
Diffstat (limited to 'CPP/Windows/ResourceString.cpp')
-rwxr-xr-x | CPP/Windows/ResourceString.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CPP/Windows/ResourceString.cpp b/CPP/Windows/ResourceString.cpp index 8d043b13..781f03b3 100755 --- a/CPP/Windows/ResourceString.cpp +++ b/CPP/Windows/ResourceString.cpp @@ -23,7 +23,7 @@ CSysString MyLoadString(HINSTANCE hInstance, UINT resourceID) { size += 256; len = ::LoadString(hInstance, resourceID, s.GetBuffer(size - 1), size); - } + } while (size - len <= 1); s.ReleaseBuffer(); return s; @@ -46,7 +46,7 @@ UString MyLoadStringW(HINSTANCE hInstance, UINT resourceID) { size += 256; len = ::LoadStringW(hInstance, resourceID, s.GetBuffer(size - 1), size); - } + } while (size - len <= 1); s.ReleaseBuffer(); return s; |