Skip to content

Commit 8106695

Browse files
committed
light tweak to Flashpoint Proxy
1 parent 14999b9 commit 8106695

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FlashpointSecurePlayer/FlashpointProxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ private struct INTERNET_PER_CONN_OPTION_LIST {
8989
private static extern bool InternetSetOption(IntPtr hInternet, INTERNET_OPTION dwOption, IntPtr lpBuffer, uint dwBufferLength);
9090

9191
private static void GetSystemProxy(ref INTERNET_PER_CONN_OPTION_LIST internetPerConnOptionList, ref INTERNET_PER_CONN_OPTION[] internetPerConnOptionListOptions) {
92-
uint internetPerConnOptionListSize = (uint)Marshal.SizeOf(internetPerConnOptionList);
93-
9492
if (internetPerConnOptionListOptions.Length < 2) {
9593
throw new ArgumentException("The Internet Per Connection Option List Options must not have a Length of less than two.");
9694
}
@@ -117,6 +115,8 @@ private static void GetSystemProxy(ref INTERNET_PER_CONN_OPTION_LIST internetPer
117115
internetPerConnOptionPointer = (IntPtr)((int)internetPerConnOptionPointer + Marshal.SizeOf(internetPerConnOptionListOptions[i]));
118116
}
119117

118+
uint internetPerConnOptionListSize = (uint)Marshal.SizeOf(internetPerConnOptionList);
119+
120120
// fill the internetPerConnOptionList structure
121121
internetPerConnOptionList.dwSize = internetPerConnOptionListSize;
122122

0 commit comments

Comments
 (0)