Skip to content

Commit

Permalink
Replace message boxes on debug build startup with debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
benstone committed Aug 26, 2023
1 parent 3c4490e commit f0f0952
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/studio/mminstal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ WORD wHaveACM()
}

#ifdef _DEBUG
MessageBox(NULL, "Microsoft Audio Compression Manager (Sound Mapper) is properly installed on your system",
"ACM Installed", MB_ICONINFORMATION);
OutputDebugString(
TEXT("Microsoft Audio Compression Manager (Sound Mapper) is properly installed on your system\n"));
#endif

return (0);
Expand Down Expand Up @@ -248,7 +248,8 @@ WORD wHaveACMCodec(DWORD dwReqCodec)
if (acmFTD.fdwSupport & ACMDRIVERDETAILS_SUPPORTF_CODEC)
{
#ifdef _DEBUG
MessageBox(NULL, "... is properly installed on your machine.", acmFTD.szFormatTag, MB_ICONINFORMATION);
OutputDebugString(acmFTD.szFormatTag);
OutputDebugString(TEXT("... is properly installed on your machine.\n"));
#endif
return (HAC_SUCCESS);
}
Expand Down Expand Up @@ -289,9 +290,8 @@ WORD wHaveICMCodec(DWORD dwReqCodec)
}

#ifdef _DEBUG
char szDesc[256];
WideCharToMultiByte(CP_ACP, 0, icInfo.szDriver, -1, szDesc, 256, NULL, NULL);
MessageBox(NULL, "... is properly installed on your machine.", szDesc, MB_ICONINFORMATION);
OutputDebugStringW(icInfo.szDriver);
OutputDebugString(TEXT("... is properly installed on your machine."));
#endif

return (HIC_SUCCESS);
Expand Down

0 comments on commit f0f0952

Please sign in to comment.