Skip to content

Commit

Permalink
修复x86的构建问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTaleX531 committed Aug 25, 2023
1 parent dba5ef5 commit dcb4fdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TFMain/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int WINAPI Main(
return HRESULT_FROM_WIN32(ERROR_BAD_COMMAND);
}

HRESULT WINAPI MainDLL::StartService()
HRESULT MainDLL::StartService()
{
wil::unique_handle fileMapping{ nullptr };
unique_service_info serviceInfo{nullptr};
Expand Down Expand Up @@ -352,7 +352,7 @@ MainDLL::unique_service_info MainDLL::GetServiceInfo()
return unique_service_info{ reinterpret_cast<ServiceInfo*>(MapViewOfFile(fileMapping.get(), FILE_MAP_ALL_ACCESS, 0, 0, 0)) };
}

HRESULT WINAPI MainDLL::StopService()
HRESULT MainDLL::StopService()
{
RETURN_HR_IF(HRESULT_FROM_WIN32(ERROR_SERVICE_NOT_ACTIVE), !IsServiceRunning());
auto serviceInfo{ GetServiceInfo() };
Expand All @@ -375,7 +375,7 @@ HRESULT WINAPI MainDLL::StopService()
return S_OK;
}

HRESULT WINAPI MainDLL::Install() try
HRESULT MainDLL::Install() try
{
using namespace wil;
using namespace TranslucentFlyouts;
Expand Down Expand Up @@ -481,7 +481,7 @@ HRESULT WINAPI MainDLL::Install() try
}
CATCH_LOG_RETURN_HR(wil::ResultFromCaughtException())

HRESULT WINAPI MainDLL::Uninstall() try
HRESULT MainDLL::Uninstall() try
{
using namespace wil;
using namespace TranslucentFlyouts;
Expand Down

0 comments on commit dcb4fdf

Please sign in to comment.