small irrelevant changes

This commit is contained in:
chayleaf 2023-03-10 07:05:52 +07:00
parent 0840549568
commit 4b8865c3aa

View file

@ -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);
if (lenW > 0) {
WCHAR *filename16 = malloc(lenW * 2);
memset(filename16, 0, lenW * 2);
if (filename16) {
MultiByteToWideChar(CP_ACP, 0, filename, lenA, filename16, lenW);
ret = wine_get_unix_file_name(filename16);
free(filename16);
}
}
}
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) {
BASS_START(BASS_StreamCreateFileUser(DWORD system, DWORD flags, WIN_BASS_FILEPROCS * proc, void * user));
FileUserData *user_new = malloc(sizeof(FileUserData));
memcpy(&user_new->procs, proc, sizeof(WIN_BASS_FILEPROCS));
user_new->procs = *proc;
user_new->user = user;
WIN_HSTREAM ret = BASS_StreamCreateFileUser(system, flags, &WINE_FILE_PROC_WRAPPERS, user_new);
if (!ret) free(user_new);