mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Updated Timer code to avoid a rare messaging problem. Fixed a couple of minor build errors. Rearranged the atomic functions and added a new compare-and-swap operation. Added a thread-priority tweak to WASAPI. Removed MS-specific classes from the web browser component.
This commit is contained in:
parent
c86c7a8011
commit
35a4b5085f
18 changed files with 559 additions and 640 deletions
|
|
@ -79,10 +79,18 @@ public:
|
|||
if (browser != 0)
|
||||
{
|
||||
LPSAFEARRAY sa = 0;
|
||||
_variant_t flags, frame, postDataVar, headersVar;
|
||||
|
||||
VARIANT flags, frame, postDataVar, headersVar; // (_variant_t isn't available in all compilers)
|
||||
VariantInit (&flags);
|
||||
VariantInit (&frame);
|
||||
VariantInit (&postDataVar);
|
||||
VariantInit (&headersVar);
|
||||
|
||||
if (headers != 0)
|
||||
headersVar = (const tchar*) headers->joinIntoString ("\r\n");
|
||||
{
|
||||
V_VT (&headersVar) = VT_BSTR;
|
||||
V_BSTR (&headersVar) = SysAllocString ((const tchar*) headers->joinIntoString ("\r\n"));
|
||||
}
|
||||
|
||||
if (postData != 0 && postData->getSize() > 0)
|
||||
{
|
||||
|
|
@ -115,6 +123,11 @@ public:
|
|||
|
||||
if (sa != 0)
|
||||
SafeArrayDestroy (sa);
|
||||
|
||||
VariantClear (&flags);
|
||||
VariantClear (&frame);
|
||||
VariantClear (&postDataVar);
|
||||
VariantClear (&headersVar);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue