aLVINlEE9 opened a new pull request, #47593: URL: https://github.com/apache/arrow/pull/47593
### Rationale for this change Windows build breaks when UNICODE is defined. The codebase mixes explicit Wide APIs with generic ones, causing compile errors. ### What changes are included in this PR? Fixed two API calls to use explicit Wide versions: - `cpu_info.cc`: `GetModuleHandle("kernel32")` → `GetModuleHandleW(L"kernel32")` - `io_util.cc`: `CreateFileMapping(..., "")` → `CreateFileMappingW(..., L"")` ### Are these changes tested? Yes. Built on Windows 11 with MSVC 2022. Tested with: ``` cmake .. --preset ninja-debug-minimal -DCMAKE_CXX_FLAGS="-DUNICODE -D_UNICODE" cmake --build . ``` Build completes successfully: ``` [197/197] Linking CXX shared library debug\arrow.dll ``` Also verified the build still works without UNICODE defined. ### Are there any user-facing changes? No. Just fixes a compile error. - [#47590 ](https://github.com/apache/arrow/issues/47590) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org