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:
parent
45ddcc9fed
commit
965a7ae9e0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue