summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Steam/src/steam_dialogs.cpp2
-rw-r--r--protocols/Steam/src/steam_pooling.cpp2
-rw-r--r--protocols/Steam/src/steam_queue.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_dialogs.cpp b/protocols/Steam/src/steam_dialogs.cpp
index af0cea11b7..6d41098da9 100644
--- a/protocols/Steam/src/steam_dialogs.cpp
+++ b/protocols/Steam/src/steam_dialogs.cpp
@@ -219,7 +219,7 @@ INT_PTR CALLBACK CSteamProto::MainOptionsProc(HWND hwnd, UINT message, WPARAM wP
wchar_t groupName[128];
GetDlgItemText(hwnd, IDC_GROUP, groupName, SIZEOF(groupName));
- if (lstrlen(groupName) > 0)
+ if (groupName[0] != '\0')
{
proto->setWString(NULL, "DefaultGroup", groupName);
Clist_CreateGroup(0, groupName);
diff --git a/protocols/Steam/src/steam_pooling.cpp b/protocols/Steam/src/steam_pooling.cpp
index 78ac23e53c..3a375d4ab3 100644
--- a/protocols/Steam/src/steam_pooling.cpp
+++ b/protocols/Steam/src/steam_pooling.cpp
@@ -64,7 +64,7 @@ void CSteamProto::ParsePollData(JSONNODE *data)
if (status != m_iStatus)
{
debugLogA("CSteamProto::ParsePollData: Change own status to %i", status);
- WORD oldStatus = m_iStatus;
+ int oldStatus = m_iStatus;
m_iStatus = m_iDesiredStatus = status;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
}
diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp
index 22096f70be..d500ea708d 100644
--- a/protocols/Steam/src/steam_queue.cpp
+++ b/protocols/Steam/src/steam_queue.cpp
@@ -20,7 +20,7 @@ void CSteamProto::StartQueue()
if (m_hQueueThread == NULL)
{
ptrA token(getStringA("TokenSecret"));
- if (token && lstrlenA(token) > 0)
+ if (token && token[0] != '\0')
{
PushRequest(
new SteamWebApi::LogonRequest(token),
@@ -29,7 +29,7 @@ void CSteamProto::StartQueue()
else
{
ptrA username(mir_urlEncode(ptrA(mir_utf8encodeW(getWStringA("Username")))));
- if (username == NULL || strlen(username) == 0)
+ if (username == NULL || username[0] == '\0')
return;
PushRequest(new SteamWebApi::RsaKeyRequest(username), (RESPONSE)&CSteamProto::OnGotRsaKey);
}