Browse Source

- removed an ifdef from DisposeMenu

git-svn-id: branches/unicodekvm@48741 -
nickysn 4 years ago
parent
commit
fb7fdfaae4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fv/src/menus.inc

+ 1 - 1
packages/fv/src/menus.inc

@@ -1615,7 +1615,7 @@ BEGIN
    If (Menu <> Nil) Then Begin                        { Valid menu item }
    If (Menu <> Nil) Then Begin                        { Valid menu item }
      P := Menu^.Items;                                { First item in list }
      P := Menu^.Items;                                { First item in list }
      While (P <> Nil) Do Begin                        { Item is valid }
      While (P <> Nil) Do Begin                        { Item is valid }
-       If (P^.Name <> {$ifdef FV_UNICODE}''{$else}Nil{$endif}) Then Begin  { Valid name pointer }
+       If (P^.Name <> Sw_PString_Empty) Then Begin  { Valid name pointer }
 {$ifndef FV_UNICODE}
 {$ifndef FV_UNICODE}
          DisposeStr(P^.Name);                         { Dispose of name }
          DisposeStr(P^.Name);                         { Dispose of name }
 {$endif FV_UNICODE}
 {$endif FV_UNICODE}