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
| Filename | Description | Download |
|---|---|---|
| DebugPrintf.c | The Fixed version (uses char, change it to wchar) | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 349732: DebugPrintf.c | 2009-11-06 07:01 | nobody |