From 898dc8abf83ff483e09a4b415e1973a4afcf673f Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sun, 25 Nov 2012 20:01:00 +0000 Subject: - Xfire: correct fix for string constant variables git-svn-id: http://svn.miranda-ng.org/main/trunk@2498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/variables.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/Xfire/src/variables.cpp b/protocols/Xfire/src/variables.cpp index 07724b21c2..d7dd38b9e3 100644 --- a/protocols/Xfire/src/variables.cpp +++ b/protocols/Xfire/src/variables.cpp @@ -174,11 +174,11 @@ extern HANDLE XFireIconFolder; extern HANDLE XFireAvatarFolder; char path[1024] = ""; if (ServiceExists(MS_FOLDERS_REGISTER_PATH)){ - if (pathtype == "Avatar"){ + if (!strcmp(pathtype,"Avatar")){ FoldersGetCustomPath(XFireAvatarFolder, path, 1024, "" );} - if (pathtype == "IniFile"){ + if (!strcmp(pathtype,"IniFile")){ FoldersGetCustomPath(XFireWorkingFolder, path, 1024, "" );} - if (pathtype == "IconsFile"){ + if (!strcmp(pathtype,"IconsFile")){ FoldersGetCustomPath(XFireIconFolder, path, 1024, "" );} strcat(path,"\\"); return path; @@ -204,7 +204,7 @@ extern HANDLE XFireAvatarFolder; strcat(BaseFolder, "XFire"); strcat(BaseFolder, "\\"); /*******BASE********/ - if (pathtype == "Avatar"){ + if (!strcmp(pathtype,"Avatar")){ strcat(BaseFolder, "Avatars"); strcat(BaseFolder, "\\"); } -- cgit v1.2.3