Browse Source

tags/2021-05-28
jules 16 years ago
parent
commit
7f29070ec4
4 changed files with 6 additions and 6 deletions
  1. +1
    -1
      build/win32/platform_specific_code/juce_win32_ActiveXComponent.cpp
  2. +1
    -1
      build/win32/platform_specific_code/juce_win32_Windowing.cpp
  3. +3
    -3
      juce_amalgamated.cpp
  4. +1
    -1
      src/juce_appframework/audio/dsp/juce_AudioSampleBuffer.cpp

+ 1
- 1
build/win32/platform_specific_code/juce_win32_ActiveXComponent.cpp View File

@@ -488,7 +488,7 @@ bool ActiveXControlComponent::createControl (const void* controlIID)
if (info->controlHWND != 0)
{
originalWndProc = (void*) GetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC);
originalWndProc = (void*) (pointer_sized_int) GetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC);
SetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC, (LONG_PTR) activeXHookWndProc);
}


+ 1
- 1
build/win32/platform_specific_code/juce_win32_Windowing.cpp View File

@@ -808,7 +808,7 @@ public:
static Win32ComponentPeer* getOwnerOfWindow (HWND h) throw()
{
if (h != 0 && GetWindowLongPtr (h, GWLP_USERDATA) == improbableWindowNumber)
return (Win32ComponentPeer*) GetWindowLongPtr (h, 8);
return (Win32ComponentPeer*) (pointer_sized_int) GetWindowLongPtr (h, 8);
return 0;
}


+ 3
- 3
juce_amalgamated.cpp View File

@@ -23122,7 +23122,7 @@ void AudioSampleBuffer::setSize (const int newNumChannels,
size = newNumSamples;

if (newNumChannels > numChannels)
channels = (float**) juce_realloc (channels, newNumChannels * sizeof (float*));
channels = (float**) juce_realloc (channels, (newNumChannels + 1) * sizeof (float*));

numChannels = newNumChannels;

@@ -241397,7 +241397,7 @@ public:
static Win32ComponentPeer* getOwnerOfWindow (HWND h) throw()
{
if (h != 0 && GetWindowLongPtr (h, GWLP_USERDATA) == improbableWindowNumber)
return (Win32ComponentPeer*) GetWindowLongPtr (h, 8);
return (Win32ComponentPeer*) (pointer_sized_int) GetWindowLongPtr (h, 8);

return 0;
}
@@ -244832,7 +244832,7 @@ bool ActiveXControlComponent::createControl (const void* controlIID)

if (info->controlHWND != 0)
{
originalWndProc = (void*) GetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC);
originalWndProc = (void*) (pointer_sized_int) GetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC);
SetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC, (LONG_PTR) activeXHookWndProc);
}



+ 1
- 1
src/juce_appframework/audio/dsp/juce_AudioSampleBuffer.cpp View File

@@ -223,7 +223,7 @@ void AudioSampleBuffer::setSize (const int newNumChannels,
size = newNumSamples;
if (newNumChannels > numChannels)
channels = (float**) juce_realloc (channels, newNumChannels * sizeof (float*));
channels = (float**) juce_realloc (channels, (newNumChannels + 1) * sizeof (float*));
numChannels = newNumChannels;


Loading…
Cancel
Save