summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/imageviewer
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-01-24 15:48:41 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2020-01-30 18:17:07 +0100
commit3041393d2e6dc094652334fcb4bc35597632d228 (patch)
tree042a1a6aa3b571cccc8bff498422f272f2d3e74b /examples/widgets/widgets/imageviewer
parent495db2cd2bb9130864f2dd1291788288765dfe7a (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 'examples/widgets/widgets/imageviewer')
0 files changed, 0 insertions, 0 deletions