Browse Source

* fix for #25753

git-svn-id: trunk@27187 -
marco 11 years ago
parent
commit
31a3e98a91
1 changed files with 8 additions and 1 deletions
  1. 8 1
      packages/winunits-base/src/htmlhelp.pp

+ 8 - 1
packages/winunits-base/src/htmlhelp.pp

@@ -24,6 +24,9 @@
 unit htmlhelp;
 unit htmlhelp;
 
 
 interface
 interface
+{$ifdef FPC_OS_UNICODE}
+  {$define UNICODE}
+{$endif}
 
 
 Uses Windows;
 Uses Windows;
 
 
@@ -383,7 +386,11 @@ Type
 
 
   function HtmlHelpA(hwndCaller:HWND; pszFile:LPCSTR; uCommand:UINT; dwData:DWORD_PTR):HWND;stdcall;external External_library name 'HtmlHelpA';
   function HtmlHelpA(hwndCaller:HWND; pszFile:LPCSTR; uCommand:UINT; dwData:DWORD_PTR):HWND;stdcall;external External_library name 'HtmlHelpA';
   function HtmlHelpW(hwndCaller:HWND; pszFile:LPCWSTR; uCommand:UINT; dwData:DWORD_PTR):HWND;stdcall;external External_library name 'HtmlHelpW';
   function HtmlHelpW(hwndCaller:HWND; pszFile:LPCWSTR; uCommand:UINT; dwData:DWORD_PTR):HWND;stdcall;external External_library name 'HtmlHelpW';
-
+ {$ifdef Unicode}
+  function HtmlHelp(hwndCaller:HWND; pszFile:LPCWSTR; uCommand:UINT; dwData:DWORD_PTR):HWND;stdcall;external External_library name 'HtmlHelpW';
+ {$else}
+  function HtmlHelp(hwndCaller:HWND; pszFile:LPCSTR; uCommand:UINT; dwData:DWORD_PTR):HWND;stdcall;external External_library name 'HtmlHelpA';
+ {$endif}
 
 
 type HH_GPROPID = (
 type HH_GPROPID = (