Skip to content

Commit 385c14f

Browse files
Fix to the CEF external that broke for Win32 after merging 7.0
1 parent c071085 commit 385c14f

5 files changed

Lines changed: 46 additions & 15 deletions

File tree

revbrowser/revbrowser-cefprocess.vcproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@
178178
RelativePath=".\src\cefprocess_w32.cpp"
179179
>
180180
</File>
181+
<File
182+
RelativePath=".\src\cefshared_w32.cpp"
183+
>
184+
</File>
181185
</Filter>
182186
<Filter
183187
Name="Header Files"

revbrowser/revbrowser.vcproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@
212212
RelativePath=".\src\cefbrowser_w32.cpp"
213213
>
214214
</File>
215+
<File
216+
RelativePath=".\src\cefshared_w32.cpp"
217+
>
218+
</File>
215219
<File
216220
RelativePath=".\src\osxbrowser.cpp"
217221
>

revbrowser/src/cefbrowser_w32.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -526,17 +526,3 @@ const char* MCCefPlatformGetResourcesDirPath()
526526
#include <stdio.h>
527527
#include <cstring>
528528

529-
void *MCU_loadmodule(const char *p_source)
530-
{
531-
return LoadLibraryA(p_source);
532-
}
533-
534-
void MCU_unloadmodule(void *p_module)
535-
{
536-
537-
}
538-
539-
void *MCU_resolvemodulesymbol(void *p_module, const char *p_name)
540-
{
541-
return GetProcAddress((HMODULE)p_module, p_name);
542-
}

revbrowser/src/cefshared_w32.cpp

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* Copyright (C) 2015 Runtime Revolution Ltd.
2+
3+
This file is part of LiveCode.
4+
5+
LiveCode is free software; you can redistribute it and/or modify it under
6+
the terms of the GNU General Public License v3 as published by the Free
7+
Software Foundation.
8+
9+
LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY
10+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
11+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12+
for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
16+
17+
#include <windows.h>
18+
19+
extern "C"
20+
{
21+
22+
void *MCU_loadmodule(const char *p_source)
23+
{
24+
return LoadLibraryA(p_source);
25+
}
26+
27+
void MCU_unloadmodule(void *p_module)
28+
{
29+
30+
}
31+
32+
void *MCU_resolvemodulesymbol(void *p_module, const char *p_name)
33+
{
34+
return GetProcAddress((HMODULE)p_module, p_name);
35+
}
36+
37+
}

thirdparty

0 commit comments

Comments
 (0)