FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixed a crash that occurs when the IVEngineServer interface is not re… · verstatx/Source.Python@2800500 · GitHub

Repository navigation

Commit 2800500

Browse files
committed
Fixed a crash that occurs when the IVEngineServer interface is not retrieved on plugin_load.
1 parent 7b121da commit 2800500

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/loader/loader_main.cpp‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ bool CSourcePython::Load( CreateInterfaceFn interfaceFactory, CreateInterfaceFn
163163

164164
IVEngineServer* engine = (IVEngineServer*)interfaceFactory(INTERFACEVERSION_VENGINESERVER, NULL);
165165

166+
// Was the IVEngineServer interface retrieved properly?
167+
if (!engine)
168+
{
169+
Msg(MSG_PREFIX "Unable to retrieve IVEngineServer interface.\n");
170+
return false;
171+
}
172+
166173
// ------------------------------------------------------------------
167174
// Build path to python engines directory.
168175
// ------------------------------------------------------------------

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL