From 26141a54407973dffb93fd834c0bcc942e8951d0 Mon Sep 17 00:00:00 2001 From: Tomas Hajny Date: Sun, 24 Oct 2004 11:44:27 +0000 Subject: [PATCH] * wrong condition for DosLoadModule --- rtl/os2/dynlibs.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rtl/os2/dynlibs.inc b/rtl/os2/dynlibs.inc index 8bf88ae88b..57d5de19e8 100644 --- a/rtl/os2/dynlibs.inc +++ b/rtl/os2/dynlibs.inc @@ -41,7 +41,7 @@ var ErrPath: array [0..259] of char; Handle: longint; begin - if DosLoadModule (@ErrPath, SizeOf (ErrPath), PChar (Name), Handle) <> 0 + if DosLoadModule (@ErrPath, SizeOf (ErrPath), PChar (Name), Handle) = 0 then Result := Handle else Result := NilHandle; end; @@ -62,7 +62,10 @@ end; { $Log$ - Revision 1.3 2002-09-07 16:01:24 peter + Revision 1.4 2004-10-24 11:44:27 hajny + * wrong condition for DosLoadModule + + Revision 1.3 2002/09/07 16:01:24 peter * old logs removed and tabs fixed }