Skip to content

Commit f9427ca

Browse files
committed
win,fs: Fix null pointer exception reported in #23
1 parent 2e33933 commit f9427ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win/fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2351,7 +2351,7 @@ static void fs__chmod(uv_fs_t* req) {
23512351
* We fix it by forcibly clearing some kind of cache by setting the security info with the
23522352
* old DACL, then attempting to read it in again.
23532353
*/
2354-
if (numOldEAs != pOldDACL->AceCount) {
2354+
if (pOldDACL != NULL && numOldEAs != pOldDACL->AceCount) {
23552355
if (ERROR_SUCCESS != SetNamedSecurityInfoW(
23562356
req->file.pathw,
23572357
SE_FILE_OBJECT,

0 commit comments

Comments
 (0)