1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

win: file: use INVALID_HANDLE_VALUE directly

c571d22dba (commitcomment-142753910)
This commit is contained in:
Andy Green 2024-09-25 12:23:15 +01:00
parent 0981808868
commit e24114fed9

View file

@ -49,7 +49,7 @@ _lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
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));