[misc] minor update to pollock

* Also reinstate CodeQL since github/codeql-action#850 is supposed to be fixed.
* Also fix a false Coverity warning.
This commit is contained in:
Pete Batard 2022-06-23 13:59:21 +01:00
parent a0d669232c
commit d0844bfc70
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
6 changed files with 30 additions and 15 deletions

View file

@ -1272,6 +1272,7 @@ static char* CreateUnattendXml(int arch, int mask)
if (arch < ARCH_X86_32 || arch >= ARCH_ARM_64 || mask == 0)
return NULL;
arch--;
// coverity[swapped_arguments]
if (GetTempFileNameU(temp_dir, APPLICATION_NAME, 0, path) == 0)
return NULL;
fd = fopen(path, "w");