mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-01 02:58:12 +08:00 
			
		
		
		
	[Win] Fixed usage of ReadConsoleInput (#74)
ReadConsoleInput params: |nLength| is the size in array elements, not in byte. Co-authored-by: d <d>
This commit is contained in:
		| @@ -64,7 +64,7 @@ void EventListener(std::atomic<bool>* quit, | ||||
|     std::vector<INPUT_RECORD> records{number_of_events}; | ||||
|     DWORD number_of_events_read = 0; | ||||
|     ReadConsoleInput(console, records.data(), | ||||
|                      (DWORD)(records.size() * sizeof(INPUT_RECORD)), | ||||
|                      (DWORD)records.size(), | ||||
|                      &number_of_events_read); | ||||
|     records.resize(number_of_events_read); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jdfa
					jdfa