diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-09-08 10:24:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-08 17:24:05 +0000 |
| commit | 3aff764c2b5d613f766538d27e0b9f448e7ed5ca (patch) | |
| tree | 0d21cd8486bb8914a933cd58841e4c9bb246df70 /source/core/slang-offset-container.cpp | |
| parent | 8b512c49d163af1df33e940acc3c4a230f0d00b7 (diff) | |
Use wide char version of Windows API (#8390)
This PR modernizes the Windows-specific code by replacing ANSI Windows
API functions with their Unicode (wide character) counterparts. This
change ensures proper handling of Unicode file paths and strings on
Windows systems.
### File Operations (`source/core/slang-io.cpp`)
- `DeleteFileA` → `DeleteFileW`
- `GetTempPathA` → `GetTempPathW`
- `GetTempFileNameA` → `GetTempFileNameW`
- `RemoveDirectoryA` → `RemoveDirectoryW`
- `SHFileOperationA` → `SHFileOperationW`
- `GetModuleFileNameA` → `GetModuleFileNameW` with UTF-8 conversion
### Platform Operations (`source/core/slang-platform.cpp`)
- `GetModuleHandleExA` → `GetModuleHandleExW`
- `LoadLibraryExA` → `LoadLibraryExW`
- `LoadLibraryA` → `LoadLibraryW`
- `OutputDebugStringA` → `OutputDebugStringW`
### Runtime and Tools
- `MessageBoxA` → `MessageBoxW` in slang-rt
- `GetCurrentDirectoryA` → `GetCurrentDirectoryW` in slang-fiddle
- String literal conversion to wide strings in vk-pipeline-create
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gangzheng Tong <gtong-nv@users.noreply.github.com>
Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source/core/slang-offset-container.cpp')
0 files changed, 0 insertions, 0 deletions
