win: Fix two -Wmicrosoft-cast warnings.
The C++ standard doesn't allow implicit conversion of function pointers (such as returned by GetProcAddress()) to void*. MSVC does accept that, and so does clang-cl (albeit with a warning). To fix the warning, just make LoadComBaseFunction() return FARPROC. Bug: 550065 Change-Id: I95eeed86c31d45358aabc31414435ae79a1a0e5c Reviewed-on: https://chromium-review.googlesource.com/955905Reviewed-by:Robert Liao <robliao@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#541872}
Showing
Please register or sign in to comment