ChangeSet ID: 21094 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/03 13:31:45
Modified files: programs/winecfg: audio.c
Log message: Vijay Kiran Kamuju infyquest@gmail.com Show detected audio drivers in autodetect.
Patch: http://cvs.winehq.org/patch.py?id=21094
Old revision New revision Changes Path 1.14 1.15 +8 -2 wine/programs/winecfg/audio.c
Index: wine/programs/winecfg/audio.c diff -u -p wine/programs/winecfg/audio.c:1.14 wine/programs/winecfg/audio.c:1.15 --- wine/programs/winecfg/audio.c:1.14 3 Nov 2005 19:31:45 -0000 +++ wine/programs/winecfg/audio.c 3 Nov 2005 19:31:45 -0000 @@ -168,7 +168,7 @@ static const char *audioAutoDetect(void)
const char *driversFound[10]; const char *name[10]; - int numFound = 0; + int numFound = 0,i;
argv_new[0] = "/bin/sh"; argv_new[1] = "-c"; @@ -234,7 +234,13 @@ static const char *audioAutoDetect(void) { /* TODO: possibly smarter handling of multiple drivers? */ char text[128]; - snprintf(text, sizeof(text), "Found %s", name[0]); + sprintf(text, "Found "); + for(i=0;i<numFound;i++) + { + strcat(text, name[i]); + if(i != numFound-1) + strcat(text,", "); + } MessageBox(NULL, (LPCTSTR)text, "Successful", MB_OK); return driversFound[0]; }