summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gaugler <thomas@dadie.net>2019-08-30 22:03:34 +0200
committerThomas Gaugler <thomas@dadie.net>2019-08-30 22:11:16 +0200
commitc13be5938c2bd3bc68ed79f359b9409aced01a7c (patch)
treeffc7dc1525a549ec8a700d1c6aa33be39de652e5
parent5ff3d763273a24220d4c94eeb06fab6155092444 (diff)
Make the defines self-contained within wininet.nsh
-rw-r--r--include/wininet.nsh13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/wininet.nsh b/include/wininet.nsh
index a617baa..eb75732 100644
--- a/include/wininet.nsh
+++ b/include/wininet.nsh
@@ -38,12 +38,6 @@
!define FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS 0x02
!define FLAGS_ERROR_UI_FLAGS_GENERATE_DATA 0x04
-${STDMACROS_DefIfNotDef} ERROR_CANCELLED 1223
-${STDMACROS_DefIfNotDef} ERROR_INTERNET_FORCE_RETRY 12032
-${STDMACROS_DefIfNotDef} ERROR_INTERNET_SEC_CERT_DATE_INVALID 12037
-${STDMACROS_DefIfNotDef} ERROR_INTERNET_SEC_CERT_CN_INVALID 12038
-${STDMACROS_DefIfNotDef} ERROR_INTERNET_INVALID_CA 12045
-
!define HTTP_E_STATUS_BASE -2145845248
!define HTTP_QUERY_CONTENT_LENGTH 5
@@ -77,6 +71,7 @@ ${STDMACROS_DefIfNotDef} ERROR_INTERNET_INVALID_CA 12045
!include LogicLib.nsh
!include StrFunc.nsh
!include Win\WinError.nsh
+!include WinMessages.nsh
!ifndef StrLoc_INCLUDED
${StrLoc}
@@ -87,6 +82,12 @@ ${StrLoc}
!include include\sha256.nsh
!endif
+${STDMACROS_DefIfNotDef} ERROR_CANCELLED 1223
+${STDMACROS_DefIfNotDef} ERROR_INTERNET_FORCE_RETRY 12032
+${STDMACROS_DefIfNotDef} ERROR_INTERNET_SEC_CERT_DATE_INVALID 12037
+${STDMACROS_DefIfNotDef} ERROR_INTERNET_SEC_CERT_CN_INVALID 12038
+${STDMACROS_DefIfNotDef} ERROR_INTERNET_INVALID_CA 12045
+
!define WININET_PREFIX "WININET_"
!define WININET_UNFUNC "un."