diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-02-17 21:51:31 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-02-17 21:51:31 +0000 |
commit | 9937c7f036f476a572a778bc1611f7b9efd8de0e (patch) | |
tree | f353fc809ca8bc063d7c4939b16b1d1247c87168 /games/asc/files/patch-source::basestrm.cpp | |
parent | 73fc3e35045c58651664473b50477c0ae26d9db2 (diff) | |
download | ports-9937c7f036f476a572a778bc1611f7b9efd8de0e.tar.gz ports-9937c7f036f476a572a778bc1611f7b9efd8de0e.zip |
Notes
Diffstat (limited to 'games/asc/files/patch-source::basestrm.cpp')
-rw-r--r-- | games/asc/files/patch-source::basestrm.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/games/asc/files/patch-source::basestrm.cpp b/games/asc/files/patch-source::basestrm.cpp new file mode 100644 index 000000000000..460d80532798 --- /dev/null +++ b/games/asc/files/patch-source::basestrm.cpp @@ -0,0 +1,40 @@ + +$FreeBSD$ + +--- source/basestrm.cpp 2001/02/17 15:08:39 1.1 ++++ source/basestrm.cpp 2001/02/17 15:08:54 +@@ -895,7 +892,7 @@ + while (actpos2 < size) { + if (datasize == 0) + if ( excpt ) { +- throw treadafterend ( getDeviceName() ); ++ goto except1; + } + else + return actpos2; +@@ -915,6 +912,9 @@ + } + + return actpos2; ++ ++except1: ++ throw treadafterend ( getDeviceName() ); + } + + +@@ -945,10 +945,14 @@ + } + else + if (actmempos > memsize) +- throw tinternalerror ( __FILE__, __LINE__ ); ++ goto except1; + + actpos2 += s; + } ++ return; ++ ++except1: ++ throw tinternalerror ( __FILE__, __LINE__ ); + } + + |