Browse Source

Fix win64 build

tags/1.9.4
falkTX 11 years ago
parent
commit
268fb8bc4a
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      source/backend/plugin/CarlaPluginThread.cpp
  2. +1
    -1
      source/backend/standalone/CarlaStandalone.cpp
  3. +2
    -2
      source/utils/CarlaThread.hpp

+ 1
- 1
source/backend/plugin/CarlaPluginThread.cpp View File

@@ -148,7 +148,7 @@ void CarlaPluginThread::run()

if (options.frontendWinId != 0)
{
std::sprintf(strBuf, P_INTPTR, options.frontendWinId);
std::sprintf(strBuf, P_UINTPTR, options.frontendWinId);
env.insert("ENGINE_OPTION_FRONTEND_WIN_ID", strBuf);
}



+ 1
- 1
source/backend/standalone/CarlaStandalone.cpp View File

@@ -503,7 +503,7 @@ bool carla_engine_init(const char* driverName, const char* clientName)
if (gStandalone.engineOptions.frontendWinId != 0)
{
char strBuf[STR_MAX+1];
std::sprintf(strBuf, P_INTPTR, gStandalone.engineOptions.frontendWinId);
std::sprintf(strBuf, P_UINTPTR, gStandalone.engineOptions.frontendWinId);
gStandalone.engine->setOption(CB::ENGINE_OPTION_FRONTEND_WIN_ID, 0, strBuf);
}
else


+ 2
- 2
source/utils/CarlaThread.hpp View File

@@ -58,7 +58,7 @@ public:
*/
bool isRunning() const noexcept
{
#ifdef CARLA_OS_WIN32
#ifdef CARLA_OS_WIN
return (fHandle.p != nullptr);
#else
return (fHandle != 0);
@@ -171,7 +171,7 @@ private:

void _init() noexcept
{
#ifdef CARLA_OS_WIN32
#ifdef CARLA_OS_WIN
fHandle.p = nullptr;
fHandle.x = 0;
#else


Loading…
Cancel
Save