Fixing VC++ warnings and errors.

This commit is contained in:
Ben Vanik
2013-02-08 22:07:38 -08:00
parent c1e2119db4
commit 338b890ef5
26 changed files with 147 additions and 58 deletions

View File

@@ -87,6 +87,7 @@ X_STATUS XModule::LoadFromFile(const char* path) {
X_STATUS XModule::LoadFromMemory(const void* addr, const size_t length) {
// Load the XEX into memory and decrypt.
xe_xex2_options_t xex_options;
xe_zero_struct(&xex_options, sizeof(xex_options));
xex_ = xe_xex2_load(kernel_state()->memory(), addr, length, xex_options);
XEEXPECTNOTNULL(xex_);

View File

@@ -141,8 +141,6 @@ static uint32_t __stdcall XThreadStartCallbackWin32(void* param) {
}
X_STATUS XThread::PlatformCreate() {
XEASSERTALWAYS();
thread_handle_ = CreateThread(
NULL,
creation_params_.stack_size,
@@ -235,7 +233,7 @@ void XThread::Execute() {
}
// Run user code.
int exit_code = kernel_state()->processor()->Execute(
int exit_code = (int)kernel_state()->processor()->Execute(
processor_state_,
creation_params_.start_address, creation_params_.start_context);