1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[flow] Surround macro params to ensure expected results

If parameters are not enclosed, evaluation order may be
not the expected one. See https://www.viva64.com/en/w/v1003/print/
for details.
This commit is contained in:
Tsarevich Dmitry 2020-02-23 19:46:18 +03:00
parent 45ddcc9fed
commit 965a7ae9e0
No known key found for this signature in database
GPG key ID: E3C61298FF5B1274

View file

@ -656,8 +656,8 @@ static __inline HMODULE GetLibraryHandle(char* szLibraryName) {
if ((pf##proc == NULL) && (NT_SUCCESS(status))) status = STATUS_NOT_IMPLEMENTED; } while(0)
/* Custom application errors */
#define FAC(f) (f<<16)
#define APPERR(err) (APPLICATION_ERROR_MASK|err)
#define FAC(f) ((f)<<16)
#define APPERR(err) (APPLICATION_ERROR_MASK|(err))
#define ERROR_INCOMPATIBLE_FS 0x1201
#define ERROR_CANT_QUICK_FORMAT 0x1202
#define ERROR_INVALID_CLUSTER_SIZE 0x1203