microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
947 stars 180 forks source link

Fix corruption in x86 callback #214

Closed kylewo closed 3 years ago

kylewo commented 3 years ago

When running on x86, the provider callback doesn't function correctly because two of the arguments are ULONGLONG's (64-bit), which does not align with the uintptr on x86 (32-bit).

This change splits the function into two platform-specific versions to avoid the issue.