diff --git a/trunk/src/nvcore/Debug.cpp b/trunk/src/nvcore/Debug.cpp index a72cb9d..071c8df 100644 --- a/trunk/src/nvcore/Debug.cpp +++ b/trunk/src/nvcore/Debug.cpp @@ -89,7 +89,7 @@ namespace static bool writeMiniDump(EXCEPTION_POINTERS * pExceptionInfo) { // create the file - HANDLE hFile = CreateFile("crash.dmp", GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + HANDLE hFile = CreateFileA("crash.dmp", GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == INVALID_HANDLE_VALUE) { nvDebug("*** Failed to create dump file.\n"); return false; @@ -725,7 +725,7 @@ void debug::disableSigHandler() bool debug::isDebuggerPresent() { #if NV_OS_WIN32 - HINSTANCE kernel32 = GetModuleHandle("kernel32.dll"); + HINSTANCE kernel32 = GetModuleHandleA("kernel32.dll"); if (kernel32) { FARPROC IsDebuggerPresent = GetProcAddress(kernel32, "IsDebuggerPresent"); if (IsDebuggerPresent != NULL && IsDebuggerPresent()) { diff --git a/trunk/src/nvcore/FileSystem.cpp b/trunk/src/nvcore/FileSystem.cpp index 0c7ec01..9118abe 100644 --- a/trunk/src/nvcore/FileSystem.cpp +++ b/trunk/src/nvcore/FileSystem.cpp @@ -42,7 +42,7 @@ bool FileSystem::exists(const char * path) bool FileSystem::createDirectory(const char * path) { #if NV_OS_WIN32 || NV_OS_XBOX - return CreateDirectory(path, NULL) != 0; + return CreateDirectoryA(path, NULL) != 0; #else return mkdir(path, 0777) != -1; #endif