Fix unicode builds.
This commit is contained in:
parent
d08c9e61e3
commit
d44a65c7b7
@ -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()) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user