[win] Fix GetModuleHandle build with clang-cl

This fixes the following warning:

[352/1440] compile ../../src/base/thread_utils.cc

FAILED: obj/src/base/base.thread_utils.obj
../../buildtools/win/clang/bin\clang-cl.exe /nologo /showIncludes /FC -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -DNOMINMAX -D_HAS_EXCEPTIONS=0 -DWIN32_LEAN_AND_MEAN -DNDEBUG -DPERFETTO_IMPLEMENTATION -I../.. -I../../src/profiling/memory/include -I../../include -Igen/build_config -Igen -fstrict-aliasing -Wformat -Wno-deprecated /bigobj /Gy /FS /utf-8 /Zc:__cplusplus /WX -fcolor-diagnostics /W2 /wd4244 /wd4267 -Wno-float-equal -Wno-unused-macros -Wno-old-style-cast -Weverything -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-gnu-include-next -Wno-gnu-statement-expression -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-poison-system-directories -Wno-reserved-id-macro -Wno-reserved-identifier -Wno-shadow-uncaptured-local -Wno-unknown-sanitizers -Wno-unknown-warning-option -Wno-unsafe-buffer-usage /O2 /Zc:inline /GR- /std:c++17 /c ../../src/base/thread_utils.cc /Foobj/src/base/base.thread_utils.obj /Fd"obj/src/base/base_c.pdb"
../../src/base/thread_utils.cc(60,29): error: cannot initialize a parameter of type 'LPCSTR' (aka 'const char *') with an lvalue of type 'const wchar_t[13]'
          ::GetModuleHandle(L"Kernel32.dll"), "SetThreadDescription"));
                            ^~~~~~~~~~~~~~~
C:\b\s\w\ir\cache\windows_sdk\win_sdk\Include\10.0.18362.0\um\libloaderapi.h(261,21): note: passing argument to parameter 'lpModuleName' here
    _In_opt_ LPCSTR lpModuleName
                    ^
../../src/base/thread_utils.cc(76,29): error: cannot initialize a parameter of type 'LPCSTR' (aka 'const char *') with an lvalue of type 'const wchar_t[13]'
          ::GetModuleHandle(L"Kernel32.dll"), "GetThreadDescription"));
                            ^~~~~~~~~~~~~~~
C:\b\s\w\ir\cache\windows_sdk\win_sdk\Include\10.0.18362.0\um\libloaderapi.h(261,21): note: passing argument to parameter 'lpModuleName' here
    _In_opt_ LPCSTR lpModuleName
                    ^
2 errors generated.
Change-Id: Ie2561ea2cd0c4574567627e7b5d79a56bdc4b540
1 file changed
tree: 88867a52e71fee2cca54395c707c7e5e9dbc6381
  1. .github/
  2. bazel/
  3. build_overrides/
  4. buildtools/
  5. debian/
  6. docs/
  7. examples/
  8. gn/
  9. include/
  10. infra/
  11. protos/
  12. python/
  13. src/
  14. test/
  15. third_party/
  16. tools/
  17. ui/
  18. .clang-format
  19. .clang-tidy
  20. .git-blame-ignore-revs
  21. .gitattributes
  22. .gitignore
  23. .gn
  24. .style.yapf
  25. Android.bp
  26. Android.bp.extras
  27. BUILD
  28. BUILD.extras
  29. BUILD.gn
  30. CHANGELOG
  31. codereview.settings
  32. DIR_METADATA
  33. heapprofd.rc
  34. LICENSE
  35. meson.build
  36. METADATA
  37. MODULE_LICENSE_APACHE2
  38. OWNERS
  39. perfetto.rc
  40. PerfettoIntegrationTests.xml
  41. PRESUBMIT.py
  42. README.chromium
  43. README.md
  44. TEST_MAPPING
  45. traced_perf.rc
  46. WORKSPACE
README.md

Perfetto - System profiling, app tracing and trace analysis

Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.

See https://perfetto.dev/docs or the /docs/ directory for documentation.