Skip to content
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

Commit dcb4fdf

Browse files
committedAug 25, 2023
修复x86的构建问题
1 parent dba5ef5 commit dcb4fdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎TFMain/dllmain.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int WINAPI Main(
192192
return HRESULT_FROM_WIN32(ERROR_BAD_COMMAND);
193193
}
194194

195-
HRESULT WINAPI MainDLL::StartService()
195+
HRESULT MainDLL::StartService()
196196
{
197197
wil::unique_handle fileMapping{ nullptr };
198198
unique_service_info serviceInfo{nullptr};
@@ -352,7 +352,7 @@ MainDLL::unique_service_info MainDLL::GetServiceInfo()
352352
return unique_service_info{ reinterpret_cast<ServiceInfo*>(MapViewOfFile(fileMapping.get(), FILE_MAP_ALL_ACCESS, 0, 0, 0)) };
353353
}
354354

355-
HRESULT WINAPI MainDLL::StopService()
355+
HRESULT MainDLL::StopService()
356356
{
357357
RETURN_HR_IF(HRESULT_FROM_WIN32(ERROR_SERVICE_NOT_ACTIVE), !IsServiceRunning());
358358
auto serviceInfo{ GetServiceInfo() };
@@ -375,7 +375,7 @@ HRESULT WINAPI MainDLL::StopService()
375375
return S_OK;
376376
}
377377

378-
HRESULT WINAPI MainDLL::Install() try
378+
HRESULT MainDLL::Install() try
379379
{
380380
using namespace wil;
381381
using namespace TranslucentFlyouts;
@@ -481,7 +481,7 @@ HRESULT WINAPI MainDLL::Install() try
481481
}
482482
CATCH_LOG_RETURN_HR(wil::ResultFromCaughtException())
483483

484-
HRESULT WINAPI MainDLL::Uninstall() try
484+
HRESULT MainDLL::Uninstall() try
485485
{
486486
using namespace wil;
487487
using namespace TranslucentFlyouts;

0 commit comments

Comments
 (0)