diff options
Diffstat (limited to 'protocols/Steam/src/steam_queue.cpp')
-rw-r--r-- | protocols/Steam/src/steam_queue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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);
}
|