Opened 7 years ago

Closed 7 years ago

#10988 closed Bug report (fixed)

libfilezilla thread.cpp contains a bug

Reported by: ckelsel Owned by:
Priority: critical Component: libfilezilla
Keywords: _beginthreadex Cc:
Component version: Operating system type: Windows
Operating system version:


impl_->handle_ = reinterpret_cast<HANDLE>(_beginthreadex(0, 0, thread_proc, impl_, 0, 0));
if (impl_->handle_ == INVALID_HANDLE_VALUE) {

_beginthreadex return 0 on error , while compare to INVALID_HANDLE_VALUE(-1)


On an error, _beginthreadex returns 0, and errno and _doserrno are set.

Change History (1)

comment:1 by Tim Kosse, 7 years ago

Resolution: fixed
Status: newclosed

Thanks, a fix has been committed to the repository.

Note: See TracTickets for help on using tickets.