[Scummvm-git-logs] scummvm master -> 99773ee204fe00ab61920d0503fd43ba06fe5366
lotharsm
mail at serra.me
Mon Aug 2 15:47:32 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
99773ee204 DEVTOOLS: Fix create_project compilation on Windows with UNICODE defined
Commit: 99773ee204fe00ab61920d0503fd43ba06fe5366
https://github.com/scummvm/scummvm/commit/99773ee204fe00ab61920d0503fd43ba06fe5366
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-08-02T17:47:29+02:00
Commit Message:
DEVTOOLS: Fix create_project compilation on Windows with UNICODE defined
Changed paths:
devtools/create_project/create_project.cpp
diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp
index 179c7a55fe..a442a4ca51 100644
--- a/devtools/create_project/create_project.cpp
+++ b/devtools/create_project/create_project.cpp
@@ -1244,13 +1244,13 @@ int getInstalledMSVC() {
// Use the registry to get the latest version
if (latest == 0) {
HKEY key;
- LONG err = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VS7", 0, KEY_QUERY_VALUE | KEY_WOW64_32KEY, &key);
+ LONG err = RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\VisualStudio\\SxS\\VS7"), 0, KEY_QUERY_VALUE | KEY_WOW64_32KEY, &key);
if (err == ERROR_SUCCESS && key != NULL) {
const MSVCList msvc = getAllMSVCVersions();
for (MSVCList::const_reverse_iterator i = msvc.rbegin(); i != msvc.rend(); ++i) {
std::ostringstream version;
version << i->version << ".0";
- err = RegQueryValueEx(key, version.str().c_str(), NULL, NULL, NULL, NULL);
+ err = RegQueryValueExA(key, version.str().c_str(), NULL, NULL, NULL, NULL);
if (err == ERROR_SUCCESS) {
latest = i->version;
break;
@@ -1406,8 +1406,8 @@ bool compareNodes(const FileNode *l, const FileNode *r) {
FileList listDirectory(const std::string &dir) {
FileList result;
#if defined(_WIN32) || defined(WIN32)
- WIN32_FIND_DATA fileInformation;
- HANDLE fileHandle = FindFirstFile((dir + "/*").c_str(), &fileInformation);
+ WIN32_FIND_DATAA fileInformation;
+ HANDLE fileHandle = FindFirstFileA((dir + "/*").c_str(), &fileInformation);
if (fileHandle == INVALID_HANDLE_VALUE)
return result;
@@ -1417,7 +1417,7 @@ FileList listDirectory(const std::string &dir) {
continue;
result.push_back(FSNode(fileInformation.cFileName, (fileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0));
- } while (FindNextFile(fileHandle, &fileInformation) == TRUE);
+ } while (FindNextFileA(fileHandle, &fileInformation) == TRUE);
FindClose(fileHandle);
#else
@@ -1445,7 +1445,7 @@ FileList listDirectory(const std::string &dir) {
void createDirectory(const std::string &dir) {
#if defined(_WIN32) || defined(WIN32)
- if (!CreateDirectory(dir.c_str(), NULL)) {
+ if (!CreateDirectoryA(dir.c_str(), NULL)) {
if (GetLastError() != ERROR_ALREADY_EXISTS) {
error("Could not create folder \"" + dir + "\"");
}
More information about the Scummvm-git-logs
mailing list