diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-01-07 18:28:53 (GMT) |
---|---|---|
committer | João Abecasis <joao@trolltech.com> | 2010-01-07 18:30:27 (GMT) |
commit | 751de8211033b40c66d88140137eef76e6b20cfa (patch) | |
tree | 839ecf91a587168782e5aba4320f2af7a678de84 /examples | |
parent | 428a624f73ed03a311f572386de1a518ad3d5d5a (diff) | |
download | Qt-751de8211033b40c66d88140137eef76e6b20cfa.zip Qt-751de8211033b40c66d88140137eef76e6b20cfa.tar.gz Qt-751de8211033b40c66d88140137eef76e6b20cfa.tar.bz2 |
Avoid repeatedly calling LookupAccountSid in QFSFileEngine::owner
Try to retrieve user/group name in a single call to LookupAccountSid, by
using pre-allocated buffers. Only call a second time if the buffer size
is insufficient. 64 bytes should be enough in common case.
Previously, we would always call LookupAccountSid twice, even if
ERROR_NONE_MAPPED occured first time.
Merge-request: 815
Reviewed-by: João Abecasis <joao@trolltech.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions