mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Fix incorrect thread procedure prototype. It has to be __stdcall.
Remove unnecessary casts.
This commit is contained in:
parent
17e8ca3c15
commit
3319bcc581
@ -2999,8 +2999,7 @@ HWND Progress::open(HWND hCallerWnd, const TCHAR* header)
|
|||||||
else
|
else
|
||||||
_tcscpy_s(_header, _countof(_header), cDefaultHeader);
|
_tcscpy_s(_header, _countof(_header), cDefaultHeader);
|
||||||
|
|
||||||
_hThread = ::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)threadFunc,
|
_hThread = ::CreateThread(NULL, 0, threadFunc, this, 0, NULL);
|
||||||
(LPVOID)this, 0, NULL);
|
|
||||||
if (!_hThread)
|
if (!_hThread)
|
||||||
{
|
{
|
||||||
::CloseHandle(_hActiveState);
|
::CloseHandle(_hActiveState);
|
||||||
|
@ -440,7 +440,7 @@ private:
|
|||||||
|
|
||||||
static volatile LONG refCount;
|
static volatile LONG refCount;
|
||||||
|
|
||||||
static DWORD threadFunc(LPVOID data);
|
static DWORD WINAPI threadFunc(LPVOID data);
|
||||||
static LRESULT APIENTRY wndProc(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lparam);
|
static LRESULT APIENTRY wndProc(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lparam);
|
||||||
|
|
||||||
// Disable copy construction and operator=
|
// Disable copy construction and operator=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user