Przeglądaj źródła

* Fixed compilation

git-svn-id: trunk@16042 -
joost 15 lat temu
rodzic
commit
d850791041
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/fcl-base/src/win/eventlog.inc

+ 1 - 1
packages/fcl-base/src/win/eventlog.inc

@@ -113,7 +113,7 @@ Var
   ELKey : String;
   ELKey : String;
 begin
 begin
   ELKey:=Format(SKeyEventLog,[IDentification]);
   ELKey:=Format(SKeyEventLog,[IDentification]);
-  Result:=RegDeleteKeyA(HKEY_LOCAL_MACHINE,pchar(ELKey));
+  Result:=(RegDeleteKeyA(HKEY_LOCAL_MACHINE,pchar(ELKey))=ERROR_SUCCESS);
 end;
 end;
 
 
 function TEventLog.MapTypeToCategory(EventType: TEventType): Word;
 function TEventLog.MapTypeToCategory(EventType: TEventType): Word;