From: wuyizhong Date: Thu, 3 Aug 2006 09:40:28 +0000 (+0000) Subject: GenTeImage can't work well with Linux is caused by its parameter parsing. GenTeImage... X-Git-Tag: edk2-stable201903~24687 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=ca9ea8d956a81877e6d56b3224fd6693d9bfa5b1 GenTeImage can't work well with Linux is caused by its parameter parsing. GenTeImage will replace all Parameter's first character to '-' if start with '/'. Actually, it is not necessary to deal with, after remove this processor, it works well now. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1185 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/TianoTools/GenTEImage/GenTEImage.c b/Tools/Source/TianoTools/GenTEImage/GenTEImage.c index 6878ddbe40..90f3b3919a 100644 --- a/Tools/Source/TianoTools/GenTEImage/GenTEImage.c +++ b/Tools/Source/TianoTools/GenTEImage/GenTEImage.c @@ -672,11 +672,7 @@ Returns: // // Process until no more arguments // - while ((Argc > 0) && ((Argv[0][0] == '-') || (Argv[0][0] == '/'))) { - // - // To simplify string comparisons, replace slashes with dashes - // - Argv[0][0] = '-'; + while ((Argc > 0) && (Argv[0][0] == '-')) { if (stricmp (Argv[0], "-o") == 0) { // // Output filename specified with -o