From 1d0c4667a32fe9240856f7433470bc72a6a3460b Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 30 Mar 2017 16:51:32 -0400 Subject: [PATCH] 4.0.18 last tweak --- win32_4ed_file_track.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win32_4ed_file_track.cpp b/win32_4ed_file_track.cpp index 16059580..06d9c52e 100644 --- a/win32_4ed_file_track.cpp +++ b/win32_4ed_file_track.cpp @@ -14,12 +14,12 @@ #include -typedef struct { +struct Win32_Directory_Listener{ OVERLAPPED overlapped; - u16 result[1024]; + u8 result[2048]; HANDLE dir; i32 user_count; -} Win32_Directory_Listener; +}; global_const OVERLAPPED null_overlapped = {0}; typedef struct { @@ -327,7 +327,7 @@ get_change_event(File_Track_System *system, Partition *scratch, u8 *buffer, i32 } if (has_result){ - FILE_NOTIFY_INFORMATION *info = (FILE_NOTIFY_INFORMATION*)(((u8*)listener.result) + offset); + FILE_NOTIFY_INFORMATION *info = (FILE_NOTIFY_INFORMATION*)(listener.result + offset); i32 len = info->FileNameLength / 2; i32 dir_len = GetFinalPathNameByHandle_utf8(listener.dir, 0, 0, FILE_NAME_NORMALIZED);