diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c index 47597bc0c4c..546f6b3c007 100644 --- a/dlls/winebus.sys/bus_udev.c +++ b/dlls/winebus.sys/bus_udev.c @@ -2098,7 +2098,7 @@ NTSTATUS udev_bus_init(void *args) goto error; } - if (access("/run/pressure-vessel", R_OK) || access("/.flatpak-info", R_OK)) + if (access("/run/pressure-vessel", R_OK) == 0 || access("/.flatpak-info", R_OK) == 0) { TRACE("Container detected, bypassing udevd by default\n"); options.disable_udevd = TRUE;