Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qga-win: fix error-handling in getNameByStringSID()
In one case we misconstrue a BOOL return as an HRESULT, and in the other case we don't check the BOOL return from LookupAccountSidW() before extracting the HRESULT from GetLastError(). Both can lead to getNameByStringSID() misreporting an error. Reported-by: Chen Hanxiao <[email protected]> Suggested-by: Tomáš Golembiovský <[email protected]> Signed-off-by: Michael Roth <[email protected]>
- Loading branch information