mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (isInternalCmd): check return value of NtMakeCmdVector (Tietew <tietew@tietew.net>'s patch).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c5da55fbdd
commit
906d9cc83b
2 changed files with 19 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Sep 25 10:46:42 2001 Usaku Nakamura <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (isInternalCmd): check return value of NtMakeCmdVector
|
||||
(Tietew <tietew@tietew.net>'s patch).
|
||||
|
||||
Thu Sep 20 21:25:00 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* eval.c (MATCH_DATA): access via rb_svar().
|
||||
|
|
|
@ -371,6 +371,8 @@ isInternalCmd(char *cmd)
|
|||
char **vec;
|
||||
int vecc = NtMakeCmdVector(cmd, &vec, FALSE);
|
||||
|
||||
if (vecc == 0)
|
||||
return 0;
|
||||
for( i = 0; szInternalCmds[i] ; i++){
|
||||
if(!strcasecmp(szInternalCmds[i], vec[0])){
|
||||
fRet = 1;
|
||||
|
|
Loading…
Reference in a new issue