Browse Source

Fix possible crash when locale string not found

master
boisso 7 years ago
parent
commit
e597fa0711
  1. 1
      k-meleon/LocalesUtils.h
  2. 1
      k-meleon/strconv.h

1
k-meleon/LocalesUtils.h

@ -119,6 +119,7 @@ public:
int FormatV(HINSTANCE hResDll, UINT nStringID, va_list argList)
{
CResStringW strW = CResStringW(hResDll, nStringID);
if (!strW) return 0;
int fLength = _vscwprintf(strW, argList);
if (fLength<0) return -1;

1
k-meleon/strconv.h

@ -28,6 +28,7 @@ public:
base_convert() : mBuffer(NULL)
{
mFBuffer[0] = 0;
}
base_convert(base_convert<T>& op)

Loading…
Cancel
Save