Additional change to 8a58cb6

This commit is contained in:
Birunthan Mohanathas 2012-06-28 12:04:27 +03:00
parent 8a58cb682c
commit 5634333e60

View File

@ -46,7 +46,7 @@ struct BinData
bool isFAT;
};
unsigned int __stdcall QueryRecycleBinThreadProc(void* pParam);
DWORD WINAPI QueryRecycleBinThreadProc(void* pParam);
HRESULT GetFolderCLSID(LPCWSTR pszPath, CLSID* pathCLSID);
LPWSTR GetCurrentUserSid();
CRawString GetRecycleBinDirectory(WCHAR drive, bool& isFAT);
@ -242,7 +242,9 @@ PLUGIN_EXPORT double Update(void* data)
if (changed && !g_Thread)
{
g_UpdateCount = -8;
HANDLE thread = (HANDLE)_beginthreadex(NULL, 0, QueryRecycleBinThreadProc, NULL, 0, NULL);
DWORD id;
HANDLE thread = CreateThread(NULL, 0, QueryRecycleBinThreadProc, NULL, 0, &id);
if (thread)
{
CloseHandle(thread);
@ -296,7 +298,7 @@ PLUGIN_EXPORT void ExecuteBang(void* data, LPCWSTR args)
}
}
unsigned int __stdcall QueryRecycleBinThreadProc(void* pParam)
DWORD WINAPI QueryRecycleBinThreadProc(void* pParam)
{
SHQUERYRBINFO rbi = {0};
rbi.cbSize = sizeof(SHQUERYRBINFO);