Skip to content

Commit

Permalink
Merge pull request #55 from benstone/remove-debug-message-boxes
Browse files Browse the repository at this point in the history
Replace message boxes on debug build startup with debug prints
  • Loading branch information
frank-weindel authored Oct 9, 2023
2 parents 79b3010 + f0f0952 commit a8a4085
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 a8a4085

Please sign in to comment.