30 Mar
2007
30 Mar
'07
11:25 a.m.
Hello, wouldn't it be nicer to use sizeof(copyCmd) here? if (GetEnvironmentVariable(COPYCMD, copyCmd, MAXSTRING)) { There are many spots like this in wcmdmain.c Regards Alex
-----Original Message----- From: wine-cvs-bounces(a)winehq.org [mailto:wine-cvs-bounces(a)winehq.org] On Behalf Of ext Alexandre Julliard ....
+ /* Preinitialize flags based on COPYCMD */ + if (GetEnvironmentVariable(COPYCMD, copyCmd, MAXSTRING)) { + if (wcsstr(copyCmd, PROMPTSTR1) != NULL || + wcsstr(copyCmd, PROMPTSTR2) != NULL) { + flags |= OPT_NOPROMPT; + } + } +