Fix wrongly detecting FIFOs as directories in wxFileName
The constants for wxFILE_EXISTS_FIFO and wxFILE_EXISTS_SOCKET were wrongly defined, mixing up their decimal and hexadecimal values, resulting in wxFILE_EXISTS_FIFO & wxFILE_EXISTS_DIR being wrongly non zero. Fix this by redefining these bit masks correctly to avoid overlapping the other values. Closes #18846.
This commit is contained in:
parent
637fc7aeea
commit
bfee44de18
@ -105,8 +105,8 @@ enum
|
|||||||
// also sets wxFILE_EXISTS_NO_FOLLOW as
|
// also sets wxFILE_EXISTS_NO_FOLLOW as
|
||||||
// it would never be satisfied otherwise
|
// it would never be satisfied otherwise
|
||||||
wxFILE_EXISTS_DEVICE = 0x0008, // check for existence of a device
|
wxFILE_EXISTS_DEVICE = 0x0008, // check for existence of a device
|
||||||
wxFILE_EXISTS_FIFO = 0x0016, // check for existence of a FIFO
|
wxFILE_EXISTS_FIFO = 0x0010, // check for existence of a FIFO
|
||||||
wxFILE_EXISTS_SOCKET = 0x0032, // check for existence of a socket
|
wxFILE_EXISTS_SOCKET = 0x0020, // check for existence of a socket
|
||||||
// gap for future types
|
// gap for future types
|
||||||
wxFILE_EXISTS_NO_FOLLOW = 0x1000, // don't dereference a contained symlink
|
wxFILE_EXISTS_NO_FOLLOW = 0x1000, // don't dereference a contained symlink
|
||||||
wxFILE_EXISTS_ANY = 0x1FFF // check for existence of anything
|
wxFILE_EXISTS_ANY = 0x1FFF // check for existence of anything
|
||||||
|
Loading…
Reference in New Issue
Block a user