Share

LAME (Lame Aint an MP3 Encoder)

Tracker: Bugs

5 Access Violation - ID: 2893101
Last Update: Attachment added ( nobody )

An Access violation occurs in DebugPrintf in the BladeMP3EncDLL.c. (on
Unicode Platforms) This is because it calls the GetModuleFileName Win API,
which on a unicode platform, returns a unicode string, however, the string
szFileName is a char, which is 8-bits only, and then when the extension
replacement occurs, it treats the szFIleName as a char, which is actually a
unicode string, strlen would also fail on it, thus returning the wrong
length since the second byte is 0.

Solution is to use wchar and wcslen or its C unicode equivalent.


Nobody/Anonymous ( nobody ) - 2009-11-06 07:01

5

Open

None

Nobody/Anonymous

Libraries

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
DebugPrintf.c The Fixed version (uses char, change it to wchar) Download

Change ( 1 )

Field Old Value Date By
File Added 349732: DebugPrintf.c 2009-11-06 07:01 nobody