@@ -182,7 +182,7 @@ bool CGraphicImageTexture::CreateFromMemoryFile(UINT bufSize, const void * c_pvB
|
|||||||
if (FAILED(D3DXCreateTextureFromFileInMemoryEx(ms_lpd3dDevice, c_pvBuf, bufSize
|
if (FAILED(D3DXCreateTextureFromFileInMemoryEx(ms_lpd3dDevice, c_pvBuf, bufSize
|
||||||
, D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT, 0, d3dFmt, D3DPOOL_DEFAULT
|
, D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT_NONPOW2, D3DX_DEFAULT, 0, d3dFmt, D3DPOOL_DEFAULT
|
||||||
, dwFilter, dwFilter, 0xffff00ff, &imageInfo, NULL, &m_lpd3dTexture))) {
|
, dwFilter, dwFilter, 0xffff00ff, &imageInfo, NULL, &m_lpd3dTexture))) {
|
||||||
TraceError("CreateFromMemoryFile: Cannot create texture");
|
TraceError("CreateFromMemoryFile: Cannot create texture (%s, %u bytes)", m_stFileName.c_str(), bufSize);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,20 +19,19 @@ PyObject * Py_BadArgument()
|
|||||||
PyObject * Py_BuildException(const char * c_pszErr, ...)
|
PyObject * Py_BuildException(const char * c_pszErr, ...)
|
||||||
{
|
{
|
||||||
if (!c_pszErr)
|
if (!c_pszErr)
|
||||||
PyErr_Clear();
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
char szErrBuf[512+1];
|
PyErr_Clear();
|
||||||
va_list args;
|
return Py_BuildNone();
|
||||||
va_start(args, c_pszErr);
|
|
||||||
vsnprintf(szErrBuf, sizeof(szErrBuf), c_pszErr, args);
|
|
||||||
va_end(args);
|
|
||||||
|
|
||||||
PyErr_SetString(PyExc_RuntimeError, szErrBuf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Py_BuildNone();
|
char szErrBuf[512+1];
|
||||||
//return NULL;
|
va_list args;
|
||||||
|
va_start(args, c_pszErr);
|
||||||
|
vsnprintf(szErrBuf, sizeof(szErrBuf), c_pszErr, args);
|
||||||
|
va_end(args);
|
||||||
|
|
||||||
|
PyErr_SetString(PyExc_RuntimeError, szErrBuf);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject * Py_BuildNone()
|
PyObject * Py_BuildNone()
|
||||||
|
|||||||
@@ -392,6 +392,7 @@ namespace MessengerSub {
|
|||||||
ADD_BY_VID,
|
ADD_BY_VID,
|
||||||
ADD_BY_NAME,
|
ADD_BY_NAME,
|
||||||
REMOVE,
|
REMOVE,
|
||||||
|
INVITE_ANSWER, // Added to match server packet_headers.h
|
||||||
}; }
|
}; }
|
||||||
namespace GC { enum : uint8_t {
|
namespace GC { enum : uint8_t {
|
||||||
LIST,
|
LIST,
|
||||||
@@ -917,7 +918,7 @@ typedef struct command_safebox_money
|
|||||||
uint16_t header;
|
uint16_t header;
|
||||||
uint16_t length;
|
uint16_t length;
|
||||||
uint8_t bState;
|
uint8_t bState;
|
||||||
uint32_t dwMoney;
|
int32_t lMoney; // Changed from uint32_t to int32_t to match server packet_structs.h
|
||||||
} TPacketCGSafeboxMoney;
|
} TPacketCGSafeboxMoney;
|
||||||
|
|
||||||
typedef struct command_safebox_checkout
|
typedef struct command_safebox_checkout
|
||||||
|
|||||||
Reference in New Issue
Block a user