mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: fix check of result of CreateFileW
This commit is contained in:
parent
c90a77f124
commit
c571d22dba
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 == NULL)
|
||||
if (ret == LWS_INVALID_FILE)
|
||||
goto bail;
|
||||
|
||||
fop_fd = malloc(sizeof(*fop_fd));
|
||||
|
|
Loading…
Add table
Reference in a new issue