Browse Source

* Do not display error message if NoErrMsg is set.

git-svn-id: trunk@27765 -
michael 11 years ago
parent
commit
d5a88caecd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rtl/win/syswin.inc

+ 2 - 1
rtl/win/syswin.inc

@@ -457,7 +457,8 @@ Begin
       end;
       end;
       if ErrorLen=ErrorBufferLength then
       if ErrorLen=ErrorBufferLength then
         begin
         begin
-          MessageBox(0,@ErrorBuf,pchar('Error'),0);
+          if not NoErrMsg then
+            MessageBox(0,@ErrorBuf,pchar('Error'),0);
           ErrorLen:=0;
           ErrorLen:=0;
         end;
         end;
       Dec(F.BufPos,i);
       Dec(F.BufPos,i);