diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-12 22:58:46 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-12 22:58:46 +0000 |
commit | ebd2e9bcc3529a53d21255203786fa9eca012228 (patch) | |
tree | dfe58a6c4a014d749c06aa6818ffa599a21b35a8 /mediaplugin/src/media | |
parent | 851cba18e77b60bd2195dea1228a70176a1b81c2 (diff) | |
download | usdx-ebd2e9bcc3529a53d21255203786fa9eca012228.tar.gz usdx-ebd2e9bcc3529a53d21255203786fa9eca012228.tar.xz usdx-ebd2e9bcc3529a53d21255203786fa9eca012228.zip |
initialize module-handle before call to LoadModule
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2736 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | mediaplugin/src/media/UMediaPlugin.pas | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mediaplugin/src/media/UMediaPlugin.pas b/mediaplugin/src/media/UMediaPlugin.pas index eb4cf395..4baa778a 100644 --- a/mediaplugin/src/media/UMediaPlugin.pas +++ b/mediaplugin/src/media/UMediaPlugin.pas @@ -440,6 +440,7 @@ begin begin FileInfo := Iter.Next(); ModuleFile := MediaPluginPath.Append(FileInfo.Name); + Module := INVALID_MODULEHANDLE_VALUE; if (not LoadModule(Module, PChar(ModuleFile.ToNative))) then begin Log.LogInfo('Failed to load media plugin: "' + FileInfo.Name.ToNative + '"', |