| @@ -148,7 +148,7 @@ void CarlaPluginThread::run() | |||||
| if (options.frontendWinId != 0) | 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); | env.insert("ENGINE_OPTION_FRONTEND_WIN_ID", strBuf); | ||||
| } | } | ||||
| @@ -503,7 +503,7 @@ bool carla_engine_init(const char* driverName, const char* clientName) | |||||
| if (gStandalone.engineOptions.frontendWinId != 0) | if (gStandalone.engineOptions.frontendWinId != 0) | ||||
| { | { | ||||
| char strBuf[STR_MAX+1]; | 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); | gStandalone.engine->setOption(CB::ENGINE_OPTION_FRONTEND_WIN_ID, 0, strBuf); | ||||
| } | } | ||||
| else | else | ||||
| @@ -58,7 +58,7 @@ public: | |||||
| */ | */ | ||||
| bool isRunning() const noexcept | bool isRunning() const noexcept | ||||
| { | { | ||||
| #ifdef CARLA_OS_WIN32 | |||||
| #ifdef CARLA_OS_WIN | |||||
| return (fHandle.p != nullptr); | return (fHandle.p != nullptr); | ||||
| #else | #else | ||||
| return (fHandle != 0); | return (fHandle != 0); | ||||
| @@ -171,7 +171,7 @@ private: | |||||
| void _init() noexcept | void _init() noexcept | ||||
| { | { | ||||
| #ifdef CARLA_OS_WIN32 | |||||
| #ifdef CARLA_OS_WIN | |||||
| fHandle.p = nullptr; | fHandle.p = nullptr; | ||||
| fHandle.x = 0; | fHandle.x = 0; | ||||
| #else | #else | ||||