Fix compilation

Remove broken property

svn path=/trunk/; revision=29110
This commit is contained in:
Hervé Poussineau 2007-09-19 19:29:40 +00:00
parent a3468f83ec
commit b14a0090bc

View file

@ -29,7 +29,7 @@ CreateDeviceDescriptor(WCHAR* path, BOOL is_enabled)
if ( ! device ) if ( ! device )
{ {
log("Failed to create a device descriptor (malloc fail)\n"); logmsg("Failed to create a device descriptor (malloc fail)\n");
return NULL; return NULL;
} }
@ -76,7 +76,7 @@ AppendAudioDeviceToList(PnP_AudioDevice* device)
/* We DON'T want to overshoot the end of the buffer! */ /* We DON'T want to overshoot the end of the buffer! */
if ( audio_device_list->size + device_info_size > audio_device_list->max_size ) if ( audio_device_list->size + device_info_size > audio_device_list->max_size )
{ {
printf("max_size would be exceeded! Failing...\n"); /*printf("max_size would be exceeded! Failing...\n");*/
return FALSE; return FALSE;
} }
@ -91,7 +91,7 @@ AppendAudioDeviceToList(PnP_AudioDevice* device)
UnlockAudioDeviceList(); UnlockAudioDeviceList();
log("Device added to list\n"); logmsg("Device added to list\n");
return TRUE; return TRUE;
} }
@ -112,7 +112,7 @@ CreateAudioDeviceList(DWORD max_size)
turning up before we're ready... */ turning up before we're ready... */
LockAudioDeviceList(); LockAudioDeviceList();
log("Creating file mapping\n"); logmsg("Creating file mapping\n");
/* Expose our device list to the world */ /* Expose our device list to the world */
device_list_file = CreateFileMapping(INVALID_HANDLE_VALUE, device_list_file = CreateFileMapping(INVALID_HANDLE_VALUE,
NULL, NULL,
@ -123,7 +123,7 @@ CreateAudioDeviceList(DWORD max_size)
if ( ! device_list_file ) if ( ! device_list_file )
{ {
log("Creation of audio device list failed (err %d)\n", GetLastError()); logmsg("Creation of audio device list failed (err %d)\n", GetLastError());
UnlockAudioDeviceList(); UnlockAudioDeviceList();
KillAudioDeviceListLock(); KillAudioDeviceListLock();
@ -131,7 +131,7 @@ CreateAudioDeviceList(DWORD max_size)
return FALSE; return FALSE;
} }
log("Mapping view of file\n"); logmsg("Mapping view of file\n");
/* Of course, we'll need to access the list ourselves */ /* Of course, we'll need to access the list ourselves */
audio_device_list = MapViewOfFile(device_list_file, audio_device_list = MapViewOfFile(device_list_file,
FILE_MAP_WRITE, FILE_MAP_WRITE,
@ -141,7 +141,7 @@ CreateAudioDeviceList(DWORD max_size)
if ( ! audio_device_list ) if ( ! audio_device_list )
{ {
log("MapViewOfFile FAILED (err %d)\n", GetLastError()); logmsg("MapViewOfFile FAILED (err %d)\n", GetLastError());
CloseHandle(device_list_file); CloseHandle(device_list_file);
device_list_file = NULL; device_list_file = NULL;
@ -162,7 +162,7 @@ CreateAudioDeviceList(DWORD max_size)
UnlockAudioDeviceList(); UnlockAudioDeviceList();
log("Device list created\n"); logmsg("Device list created\n");
return TRUE; return TRUE;
} }
@ -170,7 +170,7 @@ CreateAudioDeviceList(DWORD max_size)
VOID VOID
DestroyAudioDeviceList() DestroyAudioDeviceList()
{ {
log("Destroying device list\n"); logmsg("Destroying device list\n");
LockAudioDeviceList(); LockAudioDeviceList();