Chromium Code Reviews| Index: remoting/host/win/entry_point.cc |
| diff --git a/remoting/host/win/entry_point.cc b/remoting/host/win/entry_point.cc |
| index 0d711f27807d54efeece6c29533675cf75759202..4f5d6702efbb7b2d75defb24e453160595d89055 100644 |
| --- a/remoting/host/win/entry_point.cc |
| +++ b/remoting/host/win/entry_point.cc |
| @@ -14,3 +14,21 @@ void HostEntryPoint() { |
| int exit_code = remoting::HostMain(0, nullptr); |
| ExitProcess(exit_code); |
| } |
| + |
| +#if defined(ADDRESS_SANITIZER) |
| +// Executables instrumented with ASAN need CRT functions. We do not use |
| +// the /ENTRY switch for ASAN instrumented executable and a "main" function |
| +// is required. |
| +int WINAPI WinMain(HINSTANCE hInstance, |
|
grt (UTC plus 2)
2017/01/16 15:41:17
wWinMain here and wmain below -- i think this is b
etienneb
2017/01/16 16:58:37
Done.
|
| + HINSTANCE hPrevInstance, |
| + LPSTR lpCmdLine, |
| + int nCmdShow) { |
| + HostEntryPoint(); |
| + return 0; |
| +} |
| + |
| +int main() { |
| + HostEntryPoint(); |
| + return 0; |
| +} |
| +#endif |