• R/O
  • SSH
  • HTTPS

nes: 提交


Commit MetaInfo

修订版363 (tree)
时间2007-12-03 15:23:28
作者okasaka

Log Message

(dir_Lookup) : Fix a bug.

更改概述

差异

--- es/trunk/cmd/squeak-3.7.1/es/vm/intplugins/FilePlugin/sqEsDirectory.cpp (revision 362)
+++ es/trunk/cmd/squeak-3.7.1/es/vm/intplugins/FilePlugin/sqEsDirectory.cpp (revision 363)
@@ -1,5 +1,5 @@
11 /*
2- * Copyright (c) 2006
2+ * Copyright (c) 2006, 2007
33 * Nintendo Co., Ltd.
44 *
55 * Permission to use, copy, modify, distribute and sell this software
@@ -184,23 +184,26 @@
184184 }
185185
186186 Handle<IContext> context(binding);
187- Handle<IStream> stream(file->getStream());
188187 if (context)
189188 {
190189 *isDirectory = true;
191190 *sizeIfFile = 0;
192191 }
193- else if (stream)
194- {
195- *isDirectory = false;
196- long long size;
197- size = stream->getSize();
198- *sizeIfFile = size;
199- }
200192 else
201193 {
202- ++index;
203- continue;
194+ Handle<IStream> stream(file->getStream()); // XXX Check exception
195+ if (stream)
196+ {
197+ *isDirectory = false;
198+ long long size;
199+ size = stream->getSize();
200+ *sizeIfFile = size;
201+ }
202+ else
203+ {
204+ ++index;
205+ continue;
206+ }
204207 }
205208 return ENTRY_FOUND;
206209 }
Show on old repository browser