mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Convert custom HeadSpin integer types to standard types from stdint.h
This commit is contained in:
@ -231,7 +231,7 @@ plClient::plClient()
|
||||
plAgeLoader::SetInstance(TRACKED_NEW plAgeLoader);
|
||||
|
||||
// Use it to parse the init directory
|
||||
wchar initFolder[MAX_PATH];
|
||||
wchar_t initFolder[MAX_PATH];
|
||||
PathGetInitDirectory(initFolder, arrsize(initFolder));
|
||||
pfConsoleDirSrc dirSrc( fConsoleEngine, initFolder, L"*.ini" );
|
||||
|
||||
@ -469,7 +469,7 @@ void plClient::InitInputs()
|
||||
void plClient::ISetGraphicsDefaults()
|
||||
{
|
||||
// couldn't find display mode set defaults write to ini file
|
||||
wchar graphicsIniFile[MAX_PATH];
|
||||
wchar_t graphicsIniFile[MAX_PATH];
|
||||
PathGetInitDirectory(graphicsIniFile, arrsize(graphicsIniFile));
|
||||
PathAddFilename(graphicsIniFile, graphicsIniFile, L"graphics.ini", arrsize(graphicsIniFile));
|
||||
IWriteDefaultGraphicsSettings(graphicsIniFile);
|
||||
@ -990,7 +990,7 @@ void plClient::IQueueRoomLoad(const std::vector<plLocation>& locs, bool hold)
|
||||
bool allSameAge = true;
|
||||
const char* lastAgeName = nil;
|
||||
|
||||
UInt32 numRooms = 0;
|
||||
uint32_t numRooms = 0;
|
||||
for (int i = 0; i < locs.size(); i++)
|
||||
{
|
||||
const plLocation& loc = locs[i];
|
||||
@ -1109,7 +1109,7 @@ void plClient::IUnloadRooms(const std::vector<plLocation>& locs)
|
||||
}
|
||||
GetKey()->Release(nodeKey); // release notify interest in scene node
|
||||
|
||||
UInt32 recFlags = 0;
|
||||
uint32_t recFlags = 0;
|
||||
if (roomIdx != -1)
|
||||
{
|
||||
recFlags = fRooms[roomIdx].fFlags;
|
||||
@ -1376,11 +1376,11 @@ public:
|
||||
LoginNetClientCommCallback() : plNetClientComm::Callback(), fNumCurrentOps(0)
|
||||
{}
|
||||
|
||||
virtual void OperationStarted( UInt32 context )
|
||||
virtual void OperationStarted( uint32_t context )
|
||||
{
|
||||
fNumCurrentOps++;
|
||||
}
|
||||
virtual void OperationComplete( UInt32 context, int resultCode )
|
||||
virtual void OperationComplete( uint32_t context, int resultCode )
|
||||
{
|
||||
if (context == kAuth)
|
||||
{
|
||||
@ -1393,14 +1393,14 @@ public:
|
||||
{
|
||||
if ( hsSucceeded( resultCode ) )
|
||||
{
|
||||
UInt32 numPlayers = fCbArgs.GetInt(0);
|
||||
UInt32 pId = -1;
|
||||
uint32_t numPlayers = fCbArgs.GetInt(0);
|
||||
uint32_t pId = -1;
|
||||
std::string pName;
|
||||
|
||||
for (UInt32 i = 0; i < numPlayers; i++)
|
||||
for (uint32_t i = 0; i < numPlayers; i++)
|
||||
{
|
||||
pId = fCbArgs.GetInt((UInt16)(i*3+1));
|
||||
pName = fCbArgs.GetString((UInt16)(i*3+2));
|
||||
pId = fCbArgs.GetInt((uint16_t)(i*3+1));
|
||||
pName = fCbArgs.GetString((uint16_t)(i*3+2));
|
||||
|
||||
if (pName == plClient::GetInstance()->fUsername)
|
||||
{
|
||||
@ -2114,7 +2114,7 @@ hsG3DDeviceModeRecord plClient::ILoadDevMode(const char* devModeFile)
|
||||
/// Read the rest in
|
||||
selMode.Read(&stream);
|
||||
|
||||
UInt16 performance = stream.ReadLE16();
|
||||
uint16_t performance = stream.ReadLE16();
|
||||
|
||||
if( performance < 25 )
|
||||
plBitmap::SetGlobalLevelChopCount( 2 );
|
||||
@ -2148,7 +2148,7 @@ hsG3DDeviceModeRecord plClient::ILoadDevMode(const char* devModeFile)
|
||||
{
|
||||
dmr.GetDevice()->Write(&stream);
|
||||
dmr.GetMode()->Write(&stream);
|
||||
stream.WriteLE16((UInt16)(0*100));
|
||||
stream.WriteLE16((uint16_t)(0*100));
|
||||
stream.Close();
|
||||
}
|
||||
|
||||
@ -2180,7 +2180,7 @@ void plClient::ResizeDisplayDevice(int Width, int Height, hsBool Windowed)
|
||||
pfGameGUIMgr::GetInstance()->SetAspectRatio( aspectratio );
|
||||
|
||||
|
||||
UInt32 winStyle, winExStyle;
|
||||
uint32_t winStyle, winExStyle;
|
||||
if( Windowed )
|
||||
{
|
||||
winStyle = WS_OVERLAPPEDWINDOW;
|
||||
@ -2193,8 +2193,8 @@ void plClient::ResizeDisplayDevice(int Width, int Height, hsBool Windowed)
|
||||
SetWindowLong(fWindowHndl, GWL_EXSTYLE, winExStyle);
|
||||
|
||||
|
||||
UInt32 flags = SWP_NOCOPYBITS | SWP_SHOWWINDOW | SWP_FRAMECHANGED;
|
||||
UInt32 OutsideWidth, OutsideHeight;
|
||||
uint32_t flags = SWP_NOCOPYBITS | SWP_SHOWWINDOW | SWP_FRAMECHANGED;
|
||||
uint32_t OutsideWidth, OutsideHeight;
|
||||
HWND insertAfter;
|
||||
if( Windowed )
|
||||
{
|
||||
@ -2313,7 +2313,7 @@ void plClient::IDetectAudioVideoSettings()
|
||||
int val = 0;
|
||||
hsStream *stream = nil;
|
||||
hsUNIXStream s;
|
||||
wchar audioIniFile[MAX_PATH], graphicsIniFile[MAX_PATH];
|
||||
wchar_t audioIniFile[MAX_PATH], graphicsIniFile[MAX_PATH];
|
||||
PathGetInitDirectory(audioIniFile, arrsize(audioIniFile));
|
||||
StrCopy(graphicsIniFile, audioIniFile, arrsize(audioIniFile));
|
||||
PathAddFilename(audioIniFile, audioIniFile, L"audio.ini", arrsize(audioIniFile));
|
||||
@ -2372,7 +2372,7 @@ void plClient::IDetectAudioVideoSettings()
|
||||
}
|
||||
}
|
||||
|
||||
void plClient::IWriteDefaultGraphicsSettings(const wchar* destFile)
|
||||
void plClient::IWriteDefaultGraphicsSettings(const wchar_t* destFile)
|
||||
{
|
||||
hsStream *stream = plEncryptedStream::OpenEncryptedFileWrite(destFile);
|
||||
|
||||
@ -2450,7 +2450,7 @@ void plClient::IOnAsyncInitComplete () {
|
||||
|
||||
/// Now parse final init files (*.fni). These are files just like ini files, only to be run
|
||||
/// after all hell has broken loose in the client.
|
||||
wchar initFolder[MAX_PATH];
|
||||
wchar_t initFolder[MAX_PATH];
|
||||
PathGetInitDirectory(initFolder, arrsize(initFolder));
|
||||
pfConsoleDirSrc dirSrc( fConsoleEngine, initFolder, L"net*.fni" ); // connect to net first
|
||||
#ifndef PLASMA_EXTERNAL_RELEASE
|
||||
|
@ -94,10 +94,10 @@ protected:
|
||||
{
|
||||
public:
|
||||
plSceneNode *fNode;
|
||||
UInt32 fFlags;
|
||||
uint32_t fFlags;
|
||||
|
||||
plRoomRec() { fNode = nil; fFlags = 0; }
|
||||
plRoomRec( plSceneNode *n, UInt32 f ) : fNode( n ), fFlags( f ) {}
|
||||
plRoomRec( plSceneNode *n, uint32_t f ) : fNode( n ), fFlags( f ) {}
|
||||
|
||||
enum Flags
|
||||
{
|
||||
@ -293,7 +293,7 @@ public:
|
||||
void ResetDisplayDevice(int Width, int Height, int ColorDepth, hsBool Windowed, int NumAASamples, int MaxAnisotropicSamples, hsBool VSync = false);
|
||||
void ResizeDisplayDevice(int Width, int Height, hsBool Windowed);
|
||||
void IDetectAudioVideoSettings();
|
||||
void IWriteDefaultGraphicsSettings(const wchar* destFile);
|
||||
void IWriteDefaultGraphicsSettings(const wchar_t* destFile);
|
||||
|
||||
plAnimDebugList *fAnimDebugList;
|
||||
|
||||
|
@ -54,13 +54,13 @@ namespace ClientUpdate
|
||||
//
|
||||
// Format of the update stream
|
||||
//
|
||||
// UInt8 - type (kUpdate, kShutdown)
|
||||
// uint8_t - type (kUpdate, kShutdown)
|
||||
//
|
||||
// If type is kUpdate:
|
||||
// UInt32 - number of deleted keys
|
||||
// uint32_t - number of deleted keys
|
||||
// plUoid - uoid of deleted key (* num)
|
||||
//
|
||||
// UInt32 - number of new creatables
|
||||
// uint32_t - number of new creatables
|
||||
// plCreatable - new creatable (* num)
|
||||
//
|
||||
|
||||
|
@ -133,14 +133,14 @@ static const unsigned AUTH_FAILED_TIMER = 2;
|
||||
//============================================================================
|
||||
#ifdef PLASMA_EXTERNAL_RELEASE
|
||||
|
||||
static wchar s_patcherExeName[] = L"UruLauncher.exe";
|
||||
static wchar_t s_patcherExeName[] = L"UruLauncher.exe";
|
||||
|
||||
#endif // PLASMA_EXTERNAL_RELEASE
|
||||
|
||||
//============================================================================
|
||||
// PhysX installer
|
||||
//============================================================================
|
||||
static wchar s_physXSetupExeName[] = L"PhysX_Setup.exe";
|
||||
static wchar_t s_physXSetupExeName[] = L"PhysX_Setup.exe";
|
||||
|
||||
//============================================================================
|
||||
// TRANSGAMING detection & dialog replacement
|
||||
@ -178,12 +178,12 @@ struct LoginDialogParam {
|
||||
};
|
||||
|
||||
static bool AuthenticateNetClientComm(ENetError* result, HWND parentWnd);
|
||||
static void GetCryptKey(UInt32* cryptKey, unsigned size);
|
||||
static void GetCryptKey(uint32_t* cryptKey, unsigned size);
|
||||
static void SaveUserPass (LoginDialogParam *pLoginParam, char *password);
|
||||
static void LoadUserPass (LoginDialogParam *pLoginParam);
|
||||
static void AuthFailedStrings (ENetError authError,
|
||||
const char **ppStr1, const char **ppStr2,
|
||||
const wchar **ppWStr);
|
||||
const wchar_t **ppWStr);
|
||||
|
||||
|
||||
// Detect whether we're running under TRANSGAMING Cider
|
||||
@ -290,7 +290,7 @@ static bool TGRunLoginDialog (LoginDialogParam *pLoginParam)
|
||||
if (!cancelled)
|
||||
{
|
||||
const char *pStr1, *pStr2;
|
||||
const wchar *pWStr;
|
||||
const wchar_t *pWStr;
|
||||
unsigned int Len;
|
||||
char *pTmpStr;
|
||||
|
||||
@ -361,7 +361,7 @@ void DebugMsgF(const char* format, ...);
|
||||
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
static bool gDragging = false;
|
||||
static UInt32 keyState=0;
|
||||
static uint32_t keyState=0;
|
||||
|
||||
// Handle messages
|
||||
switch (message) {
|
||||
@ -773,7 +773,7 @@ BOOL WinInit(HINSTANCE hInst, int nCmdShow)
|
||||
/// else, use our normal styles
|
||||
|
||||
char windowName[256];
|
||||
wchar productString[256];
|
||||
wchar_t productString[256];
|
||||
StrCopy(productString, ProductLongName(), arrsize(productString));
|
||||
StrToAnsi(windowName, productString, arrsize(windowName));
|
||||
|
||||
@ -837,7 +837,7 @@ void DebugMsgF(const char* format, ...)
|
||||
|
||||
static void AuthFailedStrings (ENetError authError,
|
||||
const char **ppStr1, const char **ppStr2,
|
||||
const wchar **ppWStr)
|
||||
const wchar_t **ppWStr)
|
||||
{
|
||||
*ppStr1 = NULL;
|
||||
*ppStr2 = NULL;
|
||||
@ -895,7 +895,7 @@ BOOL CALLBACK AuthFailedDialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPAR
|
||||
{
|
||||
LoginDialogParam* loginParam = (LoginDialogParam*)lParam;
|
||||
const char *pStr1, *pStr2;
|
||||
const wchar *pWStr;
|
||||
const wchar_t *pWStr;
|
||||
|
||||
AuthFailedStrings (loginParam->authError,
|
||||
&pStr1, &pStr2, &pWStr);
|
||||
@ -970,12 +970,12 @@ BOOL CALLBACK UruTOSDialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
|
||||
|
||||
static void SaveUserPass (LoginDialogParam *pLoginParam, char *password)
|
||||
{
|
||||
UInt32 cryptKey[4];
|
||||
uint32_t cryptKey[4];
|
||||
ZeroMemory(cryptKey, sizeof(cryptKey));
|
||||
GetCryptKey(cryptKey, arrsize(cryptKey));
|
||||
|
||||
wchar wusername[kMaxAccountNameLength];
|
||||
wchar wpassword[kMaxPasswordLength];
|
||||
wchar_t wusername[kMaxAccountNameLength];
|
||||
wchar_t wpassword[kMaxPasswordLength];
|
||||
|
||||
StrToUnicode(wusername, pLoginParam->username, arrsize(wusername));
|
||||
|
||||
@ -985,7 +985,7 @@ static void SaveUserPass (LoginDialogParam *pLoginParam, char *password)
|
||||
{
|
||||
StrToUnicode(wpassword, password, arrsize(wpassword));
|
||||
|
||||
wchar domain[15];
|
||||
wchar_t domain[15];
|
||||
PathSplitEmail(wusername, nil, 0, domain, arrsize(domain), nil, 0, nil, 0, 0);
|
||||
|
||||
if (StrLen(domain) == 0 || StrCmpI(domain, L"gametap") == 0) {
|
||||
@ -1012,12 +1012,12 @@ static void SaveUserPass (LoginDialogParam *pLoginParam, char *password)
|
||||
else
|
||||
NetCommSetAuthTokenAndOS(nil, L"win");
|
||||
|
||||
wchar fileAndPath[MAX_PATH];
|
||||
wchar_t fileAndPath[MAX_PATH];
|
||||
PathGetInitDirectory(fileAndPath, arrsize(fileAndPath));
|
||||
PathAddFilename(fileAndPath, fileAndPath, L"login.dat", arrsize(fileAndPath));
|
||||
#ifndef PLASMA_EXTERNAL_RELEASE
|
||||
// internal builds can use the local init directory
|
||||
wchar localFileAndPath[MAX_PATH];
|
||||
wchar_t localFileAndPath[MAX_PATH];
|
||||
StrCopy(localFileAndPath, L"init\\login.dat", arrsize(localFileAndPath));
|
||||
if (PathDoesFileExist(localFileAndPath))
|
||||
StrCopy(fileAndPath, localFileAndPath, arrsize(localFileAndPath));
|
||||
@ -1038,7 +1038,7 @@ static void SaveUserPass (LoginDialogParam *pLoginParam, char *password)
|
||||
|
||||
static void LoadUserPass (LoginDialogParam *pLoginParam)
|
||||
{
|
||||
UInt32 cryptKey[4];
|
||||
uint32_t cryptKey[4];
|
||||
ZeroMemory(cryptKey, sizeof(cryptKey));
|
||||
GetCryptKey(cryptKey, arrsize(cryptKey));
|
||||
|
||||
@ -1046,12 +1046,12 @@ static void LoadUserPass (LoginDialogParam *pLoginParam)
|
||||
pLoginParam->remember = false;
|
||||
pLoginParam->username[0] = '\0';
|
||||
|
||||
wchar fileAndPath[MAX_PATH];
|
||||
wchar_t fileAndPath[MAX_PATH];
|
||||
PathGetInitDirectory(fileAndPath, arrsize(fileAndPath));
|
||||
PathAddFilename(fileAndPath, fileAndPath, L"login.dat", arrsize(fileAndPath));
|
||||
#ifndef PLASMA_EXTERNAL_RELEASE
|
||||
// internal builds can use the local init directory
|
||||
wchar localFileAndPath[MAX_PATH];
|
||||
wchar_t localFileAndPath[MAX_PATH];
|
||||
StrCopy(localFileAndPath, L"init\\login.dat", arrsize(localFileAndPath));
|
||||
if (PathDoesFileExist(localFileAndPath))
|
||||
StrCopy(fileAndPath, localFileAndPath, arrsize(localFileAndPath));
|
||||
@ -1059,7 +1059,7 @@ static void LoadUserPass (LoginDialogParam *pLoginParam)
|
||||
hsStream* stream = plEncryptedStream::OpenEncryptedFile(fileAndPath, true, cryptKey);
|
||||
if (stream && !stream->AtEnd())
|
||||
{
|
||||
UInt32 savedKey[4];
|
||||
uint32_t savedKey[4];
|
||||
stream->Read(sizeof(savedKey), savedKey);
|
||||
|
||||
if (memcmp(cryptKey, savedKey, sizeof(savedKey)) == 0)
|
||||
@ -1166,7 +1166,7 @@ BOOL CALLBACK UruLoginDialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
|
||||
}
|
||||
|
||||
char windowName[256];
|
||||
wchar productString[256];
|
||||
wchar_t productString[256];
|
||||
ProductString(productString, arrsize(productString));
|
||||
StrToAnsi(windowName, productString, arrsize(windowName));
|
||||
SendMessage(GetDlgItem(hwndDlg, IDC_PRODUCTSTRING), WM_SETTEXT, 0, (LPARAM) windowName);
|
||||
@ -1251,7 +1251,7 @@ BOOL CALLBACK UruLoginDialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
|
||||
}
|
||||
else if (HIWORD(wParam) == BN_CLICKED && LOWORD(wParam) == IDC_URULOGIN_GAMETAPLINK)
|
||||
{
|
||||
const wchar *signupurl = GetServerSignupUrl();
|
||||
const wchar_t *signupurl = GetServerSignupUrl();
|
||||
ShellExecuteW(NULL, L"open", signupurl, NULL, NULL, SW_SHOWNORMAL);
|
||||
|
||||
return TRUE;
|
||||
@ -1380,7 +1380,7 @@ LONG WINAPI plCustomUnhandledExceptionFilter( struct _EXCEPTION_POINTERS *Except
|
||||
}
|
||||
|
||||
char prodName[256];
|
||||
wchar productString[256];
|
||||
wchar_t productString[256];
|
||||
ProductString(productString, arrsize(productString));
|
||||
StrToAnsi(prodName, productString, arrsize(prodName));
|
||||
|
||||
@ -1390,7 +1390,7 @@ LONG WINAPI plCustomUnhandledExceptionFilter( struct _EXCEPTION_POINTERS *Except
|
||||
|
||||
/// Print the info out to a log file as well
|
||||
hsUNIXStream log;
|
||||
wchar fileAndPath[MAX_PATH];
|
||||
wchar_t fileAndPath[MAX_PATH];
|
||||
PathGetLogDirectory(fileAndPath, arrsize(fileAndPath));
|
||||
PathAddFilename(fileAndPath, fileAndPath, L"stackDump.log", arrsize(fileAndPath));
|
||||
if( log.Open( fileAndPath, L"wt" ) )
|
||||
@ -1430,7 +1430,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
gDataServerLocal = true;
|
||||
#endif
|
||||
|
||||
const wchar *serverIni = L"server.ini";
|
||||
const wchar_t *serverIni = L"server.ini";
|
||||
if (cmdParser.IsSpecified(kArgServerIni))
|
||||
serverIni = cmdParser.GetString(kArgServerIni);
|
||||
|
||||
@ -1458,8 +1458,8 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
ZERO(si);
|
||||
ZERO(pi);
|
||||
si.cb = sizeof(si);
|
||||
wchar cmdLine[MAX_PATH];
|
||||
const wchar ** addrs;
|
||||
wchar_t cmdLine[MAX_PATH];
|
||||
const wchar_t ** addrs;
|
||||
|
||||
if (!eventExists) // if it is missing, assume patcher wasn't launched
|
||||
{
|
||||
@ -1487,7 +1487,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
#endif
|
||||
|
||||
// Load an optional general.ini
|
||||
wchar gipath[MAX_PATH];
|
||||
wchar_t gipath[MAX_PATH];
|
||||
PathGetInitDirectory(gipath, arrsize(gipath));
|
||||
PathAddFilename(gipath, gipath, L"general.ini", arrsize(gipath));
|
||||
FILE *generalini = _wfopen(gipath, L"rb");
|
||||
@ -1553,7 +1553,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
if (!doIntroDialogs && loginParam.remember) {
|
||||
ENetError auth;
|
||||
|
||||
wchar wusername[kMaxAccountNameLength];
|
||||
wchar_t wusername[kMaxAccountNameLength];
|
||||
StrToUnicode(wusername, loginParam.username, arrsize(wusername));
|
||||
NetCommSetAccountUsernamePassword(wusername, loginParam.namePassHash);
|
||||
bool cancelled = AuthenticateNetClientComm(&auth, NULL);
|
||||
@ -1616,7 +1616,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
gDebugFile = NULL;
|
||||
if ( !plStatusLog::fLoggingOff )
|
||||
{
|
||||
wchar fileAndPath[MAX_PATH];
|
||||
wchar_t fileAndPath[MAX_PATH];
|
||||
PathGetLogDirectory(fileAndPath, arrsize(fileAndPath));
|
||||
PathAddFilename(fileAndPath, fileAndPath, L"plasmalog.txt", arrsize(fileAndPath));
|
||||
gDebugFile = _wfopen(fileAndPath, L"wt");
|
||||
@ -1625,7 +1625,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
if (gDebugFile != NULL)
|
||||
{
|
||||
char prdName[256];
|
||||
wchar prdString[256];
|
||||
wchar_t prdString[256];
|
||||
ProductString(prdString, arrsize(prdString));
|
||||
StrToAnsi(prdName, prdString, arrsize(prdName));
|
||||
fprintf(gDebugFile, "%s\n", prdName);
|
||||
@ -1635,10 +1635,10 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
|
||||
// log stackdump.log text if the log exists
|
||||
char stackDumpText[1024];
|
||||
wchar stackDumpTextW[1024];
|
||||
wchar_t stackDumpTextW[1024];
|
||||
memset(stackDumpText, 0, arrsize(stackDumpText));
|
||||
memset(stackDumpTextW, 0, arrsize(stackDumpTextW) * sizeof(wchar));
|
||||
wchar fileAndPath[MAX_PATH];
|
||||
memset(stackDumpTextW, 0, arrsize(stackDumpTextW) * sizeof(wchar_t));
|
||||
wchar_t fileAndPath[MAX_PATH];
|
||||
PathGetLogDirectory(fileAndPath, arrsize(fileAndPath));
|
||||
PathAddFilename(fileAndPath, fileAndPath, L"stackDump.log", arrsize(fileAndPath));
|
||||
FILE *stackDumpLog = _wfopen(fileAndPath, L"r");
|
||||
@ -1758,7 +1758,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
|
||||
return PARABLE_NORMAL_EXIT;
|
||||
}
|
||||
|
||||
static void GetCryptKey(UInt32* cryptKey, unsigned numElements)
|
||||
static void GetCryptKey(uint32_t* cryptKey, unsigned numElements)
|
||||
{
|
||||
char volName[] = "C:\\";
|
||||
int index = 0;
|
||||
|
Reference in New Issue
Block a user