Skip to content

Commit

Permalink
win: file: use INVALID_HANDLE_VALUE directly
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Sep 25, 2024
1 parent deb6205 commit da61d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plat/windows/windows-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops_own,
ret = CreateFileW(buf, GENERIC_WRITE, 0, NULL,
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);

if (ret == LWS_INVALID_FILE)
if (ret == INVALID_HANDLE_VALUE)
goto bail;

fop_fd = malloc(sizeof(*fop_fd));
Expand Down

0 comments on commit da61d4d

Please sign in to comment.