mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Changed: Use wide version of Win32 API
This commit is contained in:
parent
103bcdf967
commit
6639ec422b
1 changed files with 3 additions and 3 deletions
|
@ -225,10 +225,10 @@ ISoundDriver *ISoundDriver::createDriver(IStringMapperProvider *stringMapper, TD
|
||||||
* MTR: Is there a way with NLMISC to replace SearchFile() ? Until then, no info for Linux.
|
* MTR: Is there a way with NLMISC to replace SearchFile() ? Until then, no info for Linux.
|
||||||
*/
|
*/
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
char buffer[1024], *ptr;
|
wchar_t buffer[1024], *ptr;
|
||||||
uint len = SearchPath (NULL, dllName.c_str(), NULL, 1023, buffer, &ptr);
|
uint len = SearchPathW (NULL, utf8ToWide(dllName), NULL, 1023, buffer, &ptr);
|
||||||
if( len )
|
if( len )
|
||||||
nlinfo ("Using the library '%s' that is in the directory: '%s'", dllName.c_str(), buffer);
|
nlinfo ("Using the library '%s' that is in the directory: '%s'", dllName.c_str(), wideToUtf8(buffer).c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
createSoundDriver = (ISDRV_CREATE_PROC) driverLib.getSymbolAddress(IDRV_CREATE_PROC_NAME);
|
createSoundDriver = (ISDRV_CREATE_PROC) driverLib.getSymbolAddress(IDRV_CREATE_PROC_NAME);
|
||||||
|
|
Loading…
Reference in a new issue