mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Change posix juce_readFile to always return >= 0. Sorted out a casting error in carbon AU plugins. Tidied up a bunch of win32 warnings.
This commit is contained in:
parent
49320b25d2
commit
f316faaa04
30 changed files with 270 additions and 438 deletions
|
|
@ -162,11 +162,9 @@ void juce_setCurrentThreadName (const String& name)
|
|||
info.dwThreadID = GetCurrentThreadId();
|
||||
info.dwFlags = 0;
|
||||
|
||||
#define MS_VC_EXCEPTION 0x406d1388
|
||||
|
||||
__try
|
||||
{
|
||||
RaiseException (MS_VC_EXCEPTION, 0, sizeof (info) / sizeof (ULONG_PTR), (ULONG_PTR*) &info);
|
||||
RaiseException (0x406d1388 /*MS_VC_EXCEPTION*/, 0, sizeof (info) / sizeof (ULONG_PTR), (ULONG_PTR*) &info);
|
||||
}
|
||||
__except (EXCEPTION_CONTINUE_EXECUTION)
|
||||
{}
|
||||
|
|
@ -256,25 +254,11 @@ void juce_repeatLastProcessPriority()
|
|||
|
||||
switch (lastProcessPriority)
|
||||
{
|
||||
case Process::LowPriority:
|
||||
p = IDLE_PRIORITY_CLASS;
|
||||
break;
|
||||
|
||||
case Process::NormalPriority:
|
||||
p = NORMAL_PRIORITY_CLASS;
|
||||
break;
|
||||
|
||||
case Process::HighPriority:
|
||||
p = HIGH_PRIORITY_CLASS;
|
||||
break;
|
||||
|
||||
case Process::RealtimePriority:
|
||||
p = REALTIME_PRIORITY_CLASS;
|
||||
break;
|
||||
|
||||
default:
|
||||
jassertfalse // bad priority value
|
||||
return;
|
||||
case Process::LowPriority: p = IDLE_PRIORITY_CLASS; break;
|
||||
case Process::NormalPriority: p = NORMAL_PRIORITY_CLASS; break;
|
||||
case Process::HighPriority: p = HIGH_PRIORITY_CLASS; break;
|
||||
case Process::RealtimePriority: p = REALTIME_PRIORITY_CLASS; break;
|
||||
default: jassertfalse; return; // bad priority value
|
||||
}
|
||||
|
||||
SetPriorityClass (GetCurrentProcess(), p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue