File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * @author Martin Pulec <martin.pulec@cesnet.cz>
44 */
55/*
6- * Copyright (c) 2019-2023 CESNET, z. s. p. o.
6+ * Copyright (c) 2019-2026 CESNET, zájmové sružení právnických osob
77 * All rights reserved.
88 *
99 * This program is free software: you can redistribute it and/or modify
@@ -102,7 +102,7 @@ string wasapi_get_name(IMMDevice *pDevice); // defined in audio/playback/wasapi.
102102static void audio_play_wasapi_probe (struct device_info **available_devices, int *dev_count, void (**deleter)(void *))
103103{
104104 *deleter = free;
105- *available_devices = ( struct device_info *) malloc ( 0 ) ;
105+ *available_devices = nullptr ;
106106 *dev_count = 0 ;
107107
108108 IMMDeviceEnumerator *enumerator = nullptr ;
Original file line number Diff line number Diff line change 33 * @author Martin Pulec <pulec@cesnet.cz>
44 */
55/*
6- * Copyright (c) 2019-2025 CESNET
6+ * Copyright (c) 2019-2026 CESNET, zájmové sružení právnických osob
77 * All rights reserved.
88 *
99 * Redistribution and use in source and binary forms, with or without
@@ -277,7 +277,8 @@ get_windows_build()
277277 typedef NTSTATUS (WINAPI * RtlGetVersionFunc )(
278278 PRTL_OSVERSIONINFOW lpVersionInformation );
279279 RtlGetVersionFunc pRtlGetVersion =
280- (RtlGetVersionFunc ) GetProcAddress (hNtDll , "RtlGetVersion" );
280+ (RtlGetVersionFunc ) (void * ) GetProcAddress (hNtDll ,
281+ "RtlGetVersion" );
281282 if (pRtlGetVersion == NULL ) {
282283 MSG (VERBOSE , "Cannot get RtlGetVersion from ntdll.dll!\n" );
283284 return 0 ;
You can’t perform that action at this time.
0 commit comments