diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-01-24 15:48:41 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-01-30 18:17:07 +0100 |
commit | 3041393d2e6dc094652334fcb4bc35597632d228 (patch) | |
tree | 042a1a6aa3b571cccc8bff498422f272f2d3e74b /src/corelib/codecs/qtextcodec.cpp | |
parent | 495db2cd2bb9130864f2dd1291788288765dfe7a (diff) |
Fix flawed logic in QSystemLocalePrivate::getLocaleInfo()
If the first call to GetLocaleInfo() returned non-zero, then
GetLastError()'s return has nothing to do with GetLocaleInfo(), since
it didn't fail. The check for ERROR_INSUFFICIENT_BUFFER as last error
needs to happen in the branch where GetLocaleInfo() failed, returning
zero.
Change-Id: Idb6eaad1515a003133c787998aff0c265ef98251
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/corelib/codecs/qtextcodec.cpp')
0 files changed, 0 insertions, 0 deletions