Skip to content
Permalink
Browse files

overlay: fix a few MSVC signed/unsigned conversion warnings.

  • Loading branch information...
mkrautz committed Nov 24, 2015
1 parent 150d096 commit 5f79a3e4e97c926188c37f2b8371fb5d3c5b6b16
Showing with 3 additions and 3 deletions.
  1. +3 −3 overlay/lib.cpp
@@ -586,7 +586,7 @@ static bool dllmainProcAttachCheckProcessIsBlacklisted(char procname[], char *p)
onwhitelist = true;
break;
}
pos += strlen(buffer + pos) + 1;
pos += static_cast<unsigned int>(strlen(buffer + pos)) + 1;
}

if (!onwhitelist) {
@@ -602,7 +602,7 @@ static bool dllmainProcAttachCheckProcessIsBlacklisted(char procname[], char *p)
bBlackListed = TRUE;
return true;
}
pos += strlen(buffer + pos) + 1;
pos += static_cast<unsigned int>(strlen(buffer + pos)) + 1;
}
}
} else {
@@ -641,7 +641,7 @@ static bool dllmainProcAttachCheckProcessIsBlacklisted(char procname[], char *p)
// Same buffersize as procname; which we copy from.
char fname[PROCNAMEFILEPATH_EXTENDED_BUFFER_BUFLEN];

int pathlength = p - procname;
size_t pathlength = static_cast<size_t>(p - procname);
p = fname + pathlength;
strncpy_s(fname, sizeof(fname), procname, pathlength + 1);

0 comments on commit 5f79a3e

Please sign in to comment.
You can’t perform that action at this time.