1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00
This commit is contained in:
jules 2008-05-19 16:04:55 +00:00
parent d144ed647f
commit ae34d072f2
2 changed files with 4 additions and 6 deletions

View file

@ -42,7 +42,7 @@ typedef struct {
} ogg_page;
static ogg_uint32_t bitreverse(ogg_uint32_t x){
ogg_uint32_t bitreverse(ogg_uint32_t x){
x= ((x>>16)&0x0000ffffUL) | ((x<<16)&0xffff0000UL);
x= ((x>> 8)&0x00ff00ffUL) | ((x<< 8)&0xff00ff00UL);
x= ((x>> 4)&0x0f0f0f0fUL) | ((x<< 4)&0xf0f0f0f0UL);

View file

@ -913,11 +913,9 @@ static Handle createHandleDataRef (Handle dataHandle, const char* fileName)
if (err == noErr)
{
Str255 suffix;
#if JUCE_WIN32
strcpy_s ((char*) suffix, 128, fileName);
#else
strcpy ((char*) suffix, fileName);
#endif
CharacterFunctions::copy ((char*) suffix, fileName, 128);
StringPtr name = suffix;
err = PtrAndHand (name, dataRef, name[0] + 1);