4.0.18 last tweak

This commit is contained in:
Allen Webster 2017-03-30 16:51:32 -04:00
parent 15aa7b6519
commit 1d0c4667a3
1 changed files with 4 additions and 4 deletions

View File

@ -14,12 +14,12 @@
#include <Windows.h> #include <Windows.h>
typedef struct { struct Win32_Directory_Listener{
OVERLAPPED overlapped; OVERLAPPED overlapped;
u16 result[1024]; u8 result[2048];
HANDLE dir; HANDLE dir;
i32 user_count; i32 user_count;
} Win32_Directory_Listener; };
global_const OVERLAPPED null_overlapped = {0}; global_const OVERLAPPED null_overlapped = {0};
typedef struct { typedef struct {
@ -327,7 +327,7 @@ get_change_event(File_Track_System *system, Partition *scratch, u8 *buffer, i32
} }
if (has_result){ 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 len = info->FileNameLength / 2;
i32 dir_len = GetFinalPathNameByHandle_utf8(listener.dir, 0, 0, FILE_NAME_NORMALIZED); i32 dir_len = GetFinalPathNameByHandle_utf8(listener.dir, 0, 0, FILE_NAME_NORMALIZED);