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:
parent
0981808868
commit
e24114fed9
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue