mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 18:49:52 +01:00
Windows: Fix dialog loading for component build (issue #1617)
This commit is contained in:
parent
85c945bc00
commit
6da2bbf229
@ -121,8 +121,10 @@ void CefJavaScriptDialogRunnerWin::Run(
|
||||
HMODULE hModule = NULL;
|
||||
|
||||
// Try to load the dialog from the DLL.
|
||||
if (PathService::Get(base::FILE_MODULE, &file_path))
|
||||
if (PathService::Get(base::DIR_MODULE, &file_path)) {
|
||||
file_path = file_path.Append(L"libcef.dll");
|
||||
hModule = ::GetModuleHandle(file_path.value().c_str());
|
||||
}
|
||||
if (!hModule)
|
||||
hModule = ::GetModuleHandle(NULL);
|
||||
DCHECK(hModule);
|
||||
|
Loading…
x
Reference in New Issue
Block a user