mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
Merge pull request #325 from flaviommedeiros/master
Avoiding directives that split up parts of statements.
This commit is contained in:
commit
5b54a24b4e
@ -413,16 +413,17 @@ static void inst_binary_name(char *binfname)
|
|||||||
size_t i, len;
|
size_t i, len;
|
||||||
char *binptr;
|
char *binptr;
|
||||||
char newpath[512], newname[512];
|
char newpath[512], newname[512];
|
||||||
|
int slashchar;
|
||||||
|
|
||||||
binptr = NULL;
|
binptr = NULL;
|
||||||
len = strlen(binfname);
|
len = strlen(binfname);
|
||||||
for (i = len - 1; i < len; i--)
|
for (i = len - 1; i < len; i--)
|
||||||
{
|
{
|
||||||
if (binfname[i] == '/'
|
slashchar = binfname[i] == '/';
|
||||||
#if defined WIN32 || defined _WIN32
|
#if defined WIN32 || defined _WIN32
|
||||||
|| binfname[i] == '\\'
|
slashchar = slashchar || binfname[i] == '\\';
|
||||||
#endif
|
#endif
|
||||||
)
|
if (slashchar)
|
||||||
{
|
{
|
||||||
binptr = &binfname[i + 1];
|
binptr = &binfname[i + 1];
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user