Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compat/winansi: check result before using Name field
NtQueryObject can return a success but fill out no name. In those situations, it will set the last argument to the size of the passed in struct, that being 16, to indicate that the name field is NULL. Without this change, using git compiled for Windows under wine in certain circumstances can result in a crash due to a null pointer dereference. Signed-off-by: Christopher Degawa <[email protected]>
- Loading branch information