Skip to content

Commit

Permalink
fix(windows): bad parameter for ReadThread (windows) (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimushu authored and reconbot committed Oct 24, 2017
1 parent 8f650c3 commit 6f3afbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serialport_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ NAN_METHOD(Read) {
async->data = baton;
// ReadFileEx requires a thread that can block. Create a new thread to
// run the read operation, saving the handle so it can be deallocated later.
baton->hThread = CreateThread(NULL, 0, ReadThread, baton, 0, NULL);
baton->hThread = CreateThread(NULL, 0, ReadThread, async, 0, NULL);
}

void __stdcall ReadIOCompletion(DWORD errorCode, DWORD bytesTransferred, OVERLAPPED* ov) {
Expand Down

0 comments on commit 6f3afbe

Please sign in to comment.