Rev 411 | Rev 424 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 411 | Rev 422 | ||
---|---|---|---|
Line 213... | Line 213... | ||
213 | // Either I do something wrong, or maybe it cannot be used to store data between invocations? |
213 | // Either I do something wrong, or maybe it cannot be used to store data between invocations? |
214 | // - Using malloc(), which works also fine and is more independent from the host and easier |
214 | // - Using malloc(), which works also fine and is more independent from the host and easier |
215 | *data = (intptr_t)malloc(sizeof(globals_t)); |
215 | *data = (intptr_t)malloc(sizeof(globals_t)); |
216 | if (*data == 0) return; |
216 | if (*data == 0) return; |
217 | gdata = (globals_t*)*data; |
217 | gdata = (globals_t*)*data; |
- | 218 | #ifdef _WIN32 |
|
- | 219 | gdata->pluginDllSliderMessageId = 0; |
|
- | 220 | #endif |
|
218 | gdata->standalone = gdata->parmloaded = false; // they will be set later |
221 | gdata->standalone = gdata->parmloaded = false; // they will be set later |
219 | } |
222 | } |
220 | else { |
223 | else { |
221 | // We have data from the previous invocation. Use it instead |
224 | // We have data from the previous invocation. Use it instead |
222 | gdata = (globals_t*)*data; |
225 | gdata = (globals_t*)*data; |