diff --git a/xLights/UtilFunctions.cpp b/xLights/UtilFunctions.cpp index 435162fd8..685abd76c 100644 --- a/xLights/UtilFunctions.cpp +++ b/xLights/UtilFunctions.cpp @@ -285,7 +285,8 @@ std::string GetResourcesDirectory() { #ifndef __WXMSW__ return wxStandardPaths::Get().GetResourcesDir().ToStdString(); #else - return wxStandardPaths::Get().GetExecutablePath().ToStdString(); + auto exec = wxStandardPaths::Get().GetExecutablePath().ToStdString(); + return exec.substr(0, exec.find_last_of("/\\")); #endif } diff --git a/xLights/outputs/xxxSerialOutput.cpp b/xLights/outputs/xxxSerialOutput.cpp index 6cbc40aa3..908c39838 100644 --- a/xLights/outputs/xxxSerialOutput.cpp +++ b/xLights/outputs/xxxSerialOutput.cpp @@ -109,7 +109,7 @@ void xxxSerialOutput::EndFrame(int suppressFrames) { if (_changed || NeedToOutput(suppressFrames)) { if (_serial != nullptr) { - for (uint32_t i = 0; i < _channels; ++i) + for (int32_t i = 0; i < _channels; ++i) { if (_lastSent[i] != _data[i] || _notSentCount[i] > 200) { _notSentCount[i] = 0;