small irrelevant changes
This commit is contained in:
parent
0840549568
commit
4b8865c3aa
|
@ -171,11 +171,14 @@ static inline char *wine_bass_to_linux_filename(void *file, DWORD flags) {
|
||||||
int lenW = MultiByteToWideChar(CP_ACP, 0, filename, lenA, NULL, 0);
|
int lenW = MultiByteToWideChar(CP_ACP, 0, filename, lenA, NULL, 0);
|
||||||
if (lenW > 0) {
|
if (lenW > 0) {
|
||||||
WCHAR *filename16 = malloc(lenW * 2);
|
WCHAR *filename16 = malloc(lenW * 2);
|
||||||
|
memset(filename16, 0, lenW * 2);
|
||||||
|
if (filename16) {
|
||||||
MultiByteToWideChar(CP_ACP, 0, filename, lenA, filename16, lenW);
|
MultiByteToWideChar(CP_ACP, 0, filename, lenA, filename16, lenW);
|
||||||
ret = wine_get_unix_file_name(filename16);
|
ret = wine_get_unix_file_name(filename16);
|
||||||
free(filename16);
|
free(filename16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1262,7 +1265,7 @@ static BASS_FILEPROCS WINE_FILE_PROC_WRAPPERS = {
|
||||||
WIN_HSTREAM __stdcall BASS_BASS_StreamCreateFileUser(DWORD system, DWORD flags, WIN_BASS_FILEPROCS * proc, void * user) {
|
WIN_HSTREAM __stdcall BASS_BASS_StreamCreateFileUser(DWORD system, DWORD flags, WIN_BASS_FILEPROCS * proc, void * user) {
|
||||||
BASS_START(BASS_StreamCreateFileUser(DWORD system, DWORD flags, WIN_BASS_FILEPROCS * proc, void * user));
|
BASS_START(BASS_StreamCreateFileUser(DWORD system, DWORD flags, WIN_BASS_FILEPROCS * proc, void * user));
|
||||||
FileUserData *user_new = malloc(sizeof(FileUserData));
|
FileUserData *user_new = malloc(sizeof(FileUserData));
|
||||||
memcpy(&user_new->procs, proc, sizeof(WIN_BASS_FILEPROCS));
|
user_new->procs = *proc;
|
||||||
user_new->user = user;
|
user_new->user = user;
|
||||||
WIN_HSTREAM ret = BASS_StreamCreateFileUser(system, flags, &WINE_FILE_PROC_WRAPPERS, user_new);
|
WIN_HSTREAM ret = BASS_StreamCreateFileUser(system, flags, &WINE_FILE_PROC_WRAPPERS, user_new);
|
||||||
if (!ret) free(user_new);
|
if (!ret) free(user_new);
|
||||||
|
|
Loading…
Reference in a new issue