[PATCH] include: Correct IBrowserService.IEGetDisplayName definition

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Dec 16 16:15:11 CST 2018


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 include/shdeprecated.idl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/shdeprecated.idl b/include/shdeprecated.idl
index 3e1e5e7..9f22e54 100644
--- a/include/shdeprecated.idl
+++ b/include/shdeprecated.idl
@@ -34,6 +34,12 @@ cpp_quote("#define TLMENUF_BACK             0x00000010")
 cpp_quote("#define TLMENUF_FORE             0x00000020")
 cpp_quote("#define TLMENUF_BACKANDFORTH     (TLMENUF_BACK | TLMENUF_FORE | TLMENUF_INCLUDECURRENT)")
 
+cpp_quote("#ifndef INTERNET_MAX_URL_LENGTH")
+cpp_quote("#define INTERNET_MAX_PATH_LENGTH   2048")
+cpp_quote("#define INTERNET_MAX_SCHEME_LENGTH   32")
+cpp_quote("#define INTERNET_MAX_URL_LENGTH (INTERNET_MAX_SCHEME_LENGTH + sizeof(\"://\") + INTERNET_MAX_PATH_LENGTH)")
+cpp_quote("#endif")
+
 [
     hidden,
     local,
@@ -214,7 +220,7 @@ interface IBrowserService : IUnknown
 
     HRESULT IEGetDisplayName(
         [in] PCIDLIST_ABSOLUTE pidl,
-        [out] LPWSTR pwszName,
+        [out, size_is(INTERNET_MAX_URL_LENGTH)] LPWSTR pwszName,
         [in] UINT uFlags);
 
     HRESULT IEParseDisplayName(
-- 
1.9.1




More information about the wine-devel mailing list