filedes_t => int
[wimlib] / src / split.c
index 8b67079e0f507316eba1b91f40ab0aefac143a1a..5b14b924771451fd7c683ff4176209a60857750a 100644 (file)
@@ -226,7 +226,7 @@ wimlib_split(WIMStruct *w, const tchar *swm_name,
                }
 
                part_fd = topen(part_name, O_WRONLY | O_BINARY);
                }
 
                part_fd = topen(part_name, O_WRONLY | O_BINARY);
-               if (part_fd == INVALID_FILEDES) {
+               if (part_fd == -1) {
                        ERROR_WITH_ERRNO("Failed to open `%"TS"'", part_name);
                        ret = WIMLIB_ERR_OPEN;
                        goto out;
                        ERROR_WITH_ERRNO("Failed to open `%"TS"'", part_name);
                        ret = WIMLIB_ERR_OPEN;
                        goto out;