| @@ -1159,7 +1159,7 @@ public: | |||||
| void setIcon (const Image& newIcon) | void setIcon (const Image& newIcon) | ||||
| { | { | ||||
| const int dataSize = newIcon.getWidth() * newIcon.getHeight() + 2; | const int dataSize = newIcon.getWidth() * newIcon.getHeight() + 2; | ||||
| uint32* const data = (uint32*) juce_malloc (dataSize * sizeof (uint32)); | |||||
| unsigned long* const data = (unsigned long*) juce_malloc (dataSize * sizeof (uint32)); | |||||
| int index = 0; | int index = 0; | ||||
| data[index++] = newIcon.getWidth(); | data[index++] = newIcon.getWidth(); | ||||
| @@ -143,7 +143,7 @@ public: | |||||
| { | { | ||||
| var* args = (var*) juce_calloc (sizeof (var) * numArgs); | var* args = (var*) juce_calloc (sizeof (var) * numArgs); | ||||
| for (int j = 0; j < numArgs; ++j) | for (int j = 0; j < numArgs; ++j) | ||||
| args[j] = variantTojuceVar (pDispParams->rgvarg[j]); | |||||
| args[(numArgs - 1) - j] = variantTojuceVar (pDispParams->rgvarg[j]); | |||||
| result = v.invoke (memberId, args, numArgs); | result = v.invoke (memberId, args, numArgs); | ||||
| @@ -349,7 +349,7 @@ public: | |||||
| VARIANT* params = (VARIANT*) juce_calloc (sizeof (VARIANT) * (numParameters + 1)); | VARIANT* params = (VARIANT*) juce_calloc (sizeof (VARIANT) * (numParameters + 1)); | ||||
| for (int i = 0; i < numParameters; ++i) | for (int i = 0; i < numParameters; ++i) | ||||
| juceVarToVariant (parameters[i], params[i]); | |||||
| juceVarToVariant (parameters[(numParameters - 1) - i], params[i]); | |||||
| DISPPARAMS dispParams; | DISPPARAMS dispParams; | ||||
| zerostruct (dispParams); | zerostruct (dispParams); | ||||
| @@ -263748,7 +263748,7 @@ public: | |||||
| void setIcon (const Image& newIcon) | void setIcon (const Image& newIcon) | ||||
| { | { | ||||
| const int dataSize = newIcon.getWidth() * newIcon.getHeight() + 2; | const int dataSize = newIcon.getWidth() * newIcon.getHeight() + 2; | ||||
| uint32* const data = (uint32*) juce_malloc (dataSize * sizeof (uint32)); | |||||
| unsigned long* const data = (unsigned long*) juce_malloc (dataSize * sizeof (uint32)); | |||||
| int index = 0; | int index = 0; | ||||
| data[index++] = newIcon.getWidth(); | data[index++] = newIcon.getWidth(); | ||||