From: <sag...@us...> - 2014-03-19 02:36:56
|
Revision: 3909 http://sourceforge.net/p/modplug/code/3909 Author: saga-games Date: 2014-03-19 02:36:50 +0000 (Wed, 19 Mar 2014) Log Message: ----------- [Fix] I will test my stuff before I commit. I will test my stuff before I commit. I will test my stuff before I commit. I will test my stuff before I commit. I will test my stuff before I commit. Modified Paths: -------------- trunk/OpenMPT/mptrack/Vstplug.h trunk/OpenMPT/soundlib/plugins/PluginManager.cpp Modified: trunk/OpenMPT/mptrack/Vstplug.h =================================================================== --- trunk/OpenMPT/mptrack/Vstplug.h 2014-03-19 02:31:21 UTC (rev 3908) +++ trunk/OpenMPT/mptrack/Vstplug.h 2014-03-19 02:36:50 UTC (rev 3909) @@ -65,7 +65,7 @@ bool isInstrument; bool useBridge, shareBridgeInstance; protected: - int8 dllBits; + uint8 dllBits; public: VSTPluginLib(const mpt::PathString &dllPath, const mpt::PathString &libraryName) @@ -74,12 +74,12 @@ pluginId1(0), pluginId2(0), category(catUnknown), isInstrument(false), useBridge(false), shareBridgeInstance(false), - dllBits(-1) + dllBits(0) { } // Check whether a plugin can be hosted inside OpenMPT or requires bridging - int8 GetDllBits(); + uint8 GetDllBits(); bool IsNative() { return GetDllBits() == sizeof(void *) * 8; } void WriteToCache() const; Modified: trunk/OpenMPT/soundlib/plugins/PluginManager.cpp =================================================================== --- trunk/OpenMPT/soundlib/plugins/PluginManager.cpp 2014-03-19 02:31:21 UTC (rev 3908) +++ trunk/OpenMPT/soundlib/plugins/PluginManager.cpp 2014-03-19 02:36:50 UTC (rev 3909) @@ -44,14 +44,14 @@ static const wchar_t *const cacheSectionW = L"PluginCache"; -int8 VSTPluginLib::GetDllBits() -//----------------------------- +uint8 VSTPluginLib::GetDllBits() +//------------------------------ { - if(dllBits == -1) + if(!dllBits) { - dllBits = BridgeWrapper::GetPluginBinaryType(dllPath); + dllBits = static_cast<uint8>(BridgeWrapper::GetPluginBinaryType(dllPath)); } - return dllBits != 0; + return dllBits; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |