diff options
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/rlz/rlz.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc index 1d482424..57e0f6a 100644 --- a/chrome/browser/rlz/rlz.cc +++ b/chrome/browser/rlz/rlz.cc @@ -75,8 +75,10 @@ SendFinancialPingFn send_ping = NULL; template <typename FuncT> FuncT WireExport(HMODULE module, const char* export_name) { + if (!module) + return NULL; void* entry_point = ::GetProcAddress(module, export_name); - return (module)? reinterpret_cast<FuncT>(entry_point) : NULL; + return reinterpret_cast<FuncT>(entry_point); } HMODULE LoadRLZLibraryInternal(int directory_key) { |