Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhabacker:branches:windows:mingw:win32
mingw32-fxc2
chubinou-fxc2-2435931-fixes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chubinou-fxc2-2435931-fixes.patch of Package mingw32-fxc2
--- chubinou-fxc2-2435931/fxc2.cpp.orig 2022-03-16 14:43:37.919981376 +0100 +++ chubinou-fxc2-2435931/fxc2.cpp 2022-03-16 14:52:32.298071835 +0100 @@ -1,12 +1,12 @@ #include <d3dcompiler.h> #include <d3dcommon.h> #include <direct.h> + +#include <cassert> #include <stdio.h> #include <string> #include <wchar.h> - -#define D3D_COMPILE_STANDARD_FILE_INCLUDE ((ID3DInclude*)(UINT_PTR)1) typedef HRESULT(__stdcall *pCompileFromFileg)(LPCWSTR, const D3D_SHADER_MACRO[], ID3DInclude*, @@ -286,10 +286,10 @@ if (FAILED(hr)) { if (errors) { char* error = (char*)errors->GetBufferPointer(); - printf("Got an error (%i) while compiling:\n%s\n", hr, error); + printf("Got an error (%08x) while compiling:\n%s\n", hr, error); errors->Release(); } else { - printf("Got an error (%i) while compiling, but no error message from the function.\n", hr); + printf("Got an error (%08x) while compiling, but no error message from the function.\n", hr); LPSTR messageBuffer = nullptr; size_t size = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor