[PR #255] [CLOSED] strdup for Windows #1429

Closed
opened 2026-02-27 21:12:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/255
Author: @DanielSvoboda
Created: 7/7/2024
Status: Closed

Base: mainHead: strdup-for-Windows


📝 Commits (3)

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 src/core/libraries/kernel/file_system.cpp (+14 -0)

📄 Description

Adds an implementation of the strdup function for the Windows environment, where it is not standard. This implementation uses strcpy_s to ensure safe string copying. The code is guarded with #ifdef _WIN32 to ensure it compiles only on Windows platforms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/255 **Author:** [@DanielSvoboda](https://github.com/DanielSvoboda) **Created:** 7/7/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `strdup-for-Windows` --- ### 📝 Commits (3) - [`c6c220c`](https://github.com/shadps4-emu/shadPS4/commit/c6c220c3237befa1743f5c858b97ac14ceb1cdab) strdup for Windows - [`0cf3d1f`](https://github.com/shadps4-emu/shadPS4/commit/0cf3d1fa8235e595063f1b6359419fe5561e2156) clang-format - [`5efa951`](https://github.com/shadps4-emu/shadPS4/commit/5efa951e03ba9ebb68b3692f8954224e0564ae8a) clang-format ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/kernel/file_system.cpp` (+14 -0) </details> ### 📄 Description Adds an implementation of the strdup function for the Windows environment, where it is not standard. This implementation uses strcpy_s to ensure safe string copying. The code is guarded with #ifdef _WIN32 to ensure it compiles only on Windows platforms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:12:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1429
No description provided.