RE: Jason Edmeades : xcopy: Add support for COPYCMD override and fix /-y.
30 Mar
2007
30 Mar
'07
6: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; + } + } +
6832
Age (days ago)
6832
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexander.Farber@nokia.com