Skip to content

Commit 82463a5

Browse files
committed
Fix compilation on windows
1 parent 8e5eed0 commit 82463a5

File tree

1 file changed

+2
-2
lines changed
  • src/libuv-1.38.1/src/win

1 file changed

+2
-2
lines changed

src/libuv-1.38.1/src/win/fs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ INLINE static int fs__readlink_handle(HANDLE handle, char** target_ptr,
414414
SetLastError(ERROR_SYMLINK_NOT_SUPPORTED);
415415
return -1;
416416
}
417-
w_target = reparse_data->AppExecLinkReparseBuffer.StringList;
417+
w_target = reparse_data->u.AppExecLinkReparseBuffer.StringList;
418418
/* The StringList buffer contains a list of strings separated by "\0", */
419419
/* with "\0\0" terminating the list. Move to the 3rd string in the list: */
420420
for (i = 0; i < 2; ++i) {
@@ -1719,7 +1719,7 @@ INLINE static int fs__stat_handle(HANDLE handle, uv_stat_t* statbuf,
17191719
FileFsVolumeInformation);
17201720

17211721
/* Buffer overflow (a warning status code) is expected here. */
1722-
if (io_status.Status == STATUS_NOT_IMPLEMENTED) {
1722+
if (io_status.u.Status == STATUS_NOT_IMPLEMENTED) {
17231723
statbuf->st_dev = 0;
17241724
} else if (NT_ERROR(nt_status)) {
17251725
SetLastError(pRtlNtStatusToDosError(nt_status));

0 commit comments

Comments
 (0)