Skip to content

Commit a0a0a8e

Browse files
committed
fix: Use UNKNOWN directly in the Format string.
1 parent c338485 commit a0a0a8e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/MPCTestAPI/MPCTestAPIDlg.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
LPCTSTR GetMPCCommandName(MPCAPI_COMMAND nCmd)
3131
{
3232
switch (nCmd) {
33-
case CMD_CONNECT:
34-
return _T("CMD_CONNECT");
33+
//case CMD_CONNECT:
34+
// return _T("CMD_CONNECT");
3535
case CMD_DISCONNECT:
3636
return _T("CMD_DISCONNECT");
3737
case CMD_STATE:
@@ -58,8 +58,7 @@ LPCTSTR GetMPCCommandName(MPCAPI_COMMAND nCmd)
5858
// Missing a COMMAND from MpcApi.h file
5959
static CString strResult;
6060
LPCTSTR pszName = nullptr;
61-
pszName = _T("UNKNOWN");
62-
strResult.Format(_T("%s (0x%08X)"), pszName, (unsigned int)nCmd);
61+
strResult.Format(_T("%s (0x%08X)"), _T("UNKNOWN"), (unsigned int)nCmd);
6362
return strResult;
6463
}
6564
}

0 commit comments

Comments
 (0)