@@ -488,7 +488,7 @@ bool ActiveXControlComponent::createControl (const void* controlIID) | |||||
if (info->controlHWND != 0) | 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); | SetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC, (LONG_PTR) activeXHookWndProc); | ||||
} | } | ||||
@@ -808,7 +808,7 @@ public: | |||||
static Win32ComponentPeer* getOwnerOfWindow (HWND h) throw() | static Win32ComponentPeer* getOwnerOfWindow (HWND h) throw() | ||||
{ | { | ||||
if (h != 0 && GetWindowLongPtr (h, GWLP_USERDATA) == improbableWindowNumber) | if (h != 0 && GetWindowLongPtr (h, GWLP_USERDATA) == improbableWindowNumber) | ||||
return (Win32ComponentPeer*) GetWindowLongPtr (h, 8); | |||||
return (Win32ComponentPeer*) (pointer_sized_int) GetWindowLongPtr (h, 8); | |||||
return 0; | return 0; | ||||
} | } | ||||
@@ -23122,7 +23122,7 @@ void AudioSampleBuffer::setSize (const int newNumChannels, | |||||
size = newNumSamples; | size = newNumSamples; | ||||
if (newNumChannels > numChannels) | if (newNumChannels > numChannels) | ||||
channels = (float**) juce_realloc (channels, newNumChannels * sizeof (float*)); | |||||
channels = (float**) juce_realloc (channels, (newNumChannels + 1) * sizeof (float*)); | |||||
numChannels = newNumChannels; | numChannels = newNumChannels; | ||||
@@ -241397,7 +241397,7 @@ public: | |||||
static Win32ComponentPeer* getOwnerOfWindow (HWND h) throw() | static Win32ComponentPeer* getOwnerOfWindow (HWND h) throw() | ||||
{ | { | ||||
if (h != 0 && GetWindowLongPtr (h, GWLP_USERDATA) == improbableWindowNumber) | if (h != 0 && GetWindowLongPtr (h, GWLP_USERDATA) == improbableWindowNumber) | ||||
return (Win32ComponentPeer*) GetWindowLongPtr (h, 8); | |||||
return (Win32ComponentPeer*) (pointer_sized_int) GetWindowLongPtr (h, 8); | |||||
return 0; | return 0; | ||||
} | } | ||||
@@ -244832,7 +244832,7 @@ bool ActiveXControlComponent::createControl (const void* controlIID) | |||||
if (info->controlHWND != 0) | 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); | SetWindowLongPtr ((HWND) info->controlHWND, GWLP_WNDPROC, (LONG_PTR) activeXHookWndProc); | ||||
} | } | ||||
@@ -223,7 +223,7 @@ void AudioSampleBuffer::setSize (const int newNumChannels, | |||||
size = newNumSamples; | size = newNumSamples; | ||||
if (newNumChannels > numChannels) | if (newNumChannels > numChannels) | ||||
channels = (float**) juce_realloc (channels, newNumChannels * sizeof (float*)); | |||||
channels = (float**) juce_realloc (channels, (newNumChannels + 1) * sizeof (float*)); | |||||
numChannels = newNumChannels; | numChannels = newNumChannels; | ||||