From 596e412566a84b208eb407ee9fc4b831838508bd Mon Sep 17 00:00:00 2001 From: bart <9132501-flyingsheep@users.noreply.gitlab.com> Date: Sat, 11 Jan 2014 00:57:27 +0000 Subject: [PATCH] LazUtils: WinCE use CSIDL_LOCAL to fix compilation error. git-svn-id: trunk@43693 - --- components/lazutils/winlazfileutils.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lazutils/winlazfileutils.inc b/components/lazutils/winlazfileutils.inc index 5937d36bfb..c9f1f3f696 100644 --- a/components/lazutils/winlazfileutils.inc +++ b/components/lazutils/winlazfileutils.inc @@ -696,11 +696,12 @@ end; function GetAppConfigDirWide(Global: Boolean; Create: boolean = false): string; const CSIDL_GLOBAL = {$IFDEF WINCE}CSIDL_WINDOWS{$ELSE}CSIDL_COMMON_APPDATA{$ENDIF WINCE}; + CSIDL_LOCAL = {$IFDEF WINCE}CSIDL_APPDATA{$ELSE}CSIDL_LOCAL_APPDATA{$ENDIF}; begin If Global then Result := GetWindowsSpecialDirW(CSIDL_GLOBAL) else - Result := GetWindowsSpecialDirW(CSIDL_LOCAL_APPDATA); + Result := GetWindowsSpecialDirW(CSIDL_LOCAL); If (Result <> '') then begin if VendorName <> '' then