#define _(s) T_(s)\r
\r
/* Module globals */\r
-static char *editTagsText;\r
+static char *editTagsText, **resPtr;\r
BOOL editTagsUp = FALSE;\r
BOOL canEditTags = FALSE;\r
\r
GetWindowText(hwndText, str, len + 1);\r
p = q = str;\r
while (*q) {\r
- if (*q == '\r'|| *q == '\n')\r
+ if (*q == '\r')\r
q++;\r
else\r
*p++ = *q++;\r
}\r
*p = NULLCHAR;\r
+ if(resPtr) *resPtr = strdup(str), err = 0; else\r
err = ReplaceTags(str, &gameInfo);\r
if (err) DisplayError(_("Error replacing tags."), err);\r
\r
SetActiveWindow(hwnd);\r
}\r
\r
-VOID EditTagsPopUp(char *tags)\r
+VOID EditTagsPopUp(char *tags, char **dest)\r
{\r
+ resPtr = dest;\r
EitherTagsPopUp(tags, "", TRUE);\r
}\r
\r