Skip to content

Commit d32f846

Browse files
Fixed issue with 32bit machines and "SysAllocString"
when using 32 bit machines the alias for the function AutoProxy_SysAllocString is set to Global free this is incorrect and causes the application to crash
1 parent ddd933a commit d32f846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebHelpers.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ End Type
9393

9494
Private Declare Sub AutoProxy_CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
9595
(ByVal AutoProxy_lpDest As Long, ByVal AutoProxy_lpSource As Long, ByVal AutoProxy_cbCopy As Long)
96-
Private Declare Function AutoProxy_SysAllocString Lib "oleaut32" Alias "GlobalFree" _
96+
Private Declare Function AutoProxy_SysAllocString Lib "oleaut32" Alias "SysAllocString" _
9797
(ByVal AutoProxy_pwsz As Long) As Long
9898
Private Declare Function AutoProxy_GlobalFree Lib "kernel32" Alias "GlobalFree" _
9999
(ByVal AutoProxy_p As Long) As Long

0 commit comments

Comments
 (0)