Commit 8fce9369 authored by Alexandre Julliard's avatar Alexandre Julliard

oleaut32: Replace long and unsigned long by more appropriate types.

parent 8de02428
...@@ -132,8 +132,8 @@ struct OLEFontImpl ...@@ -132,8 +132,8 @@ struct OLEFontImpl
/* /*
* Size ratio * Size ratio
*/ */
long cyLogical; LONG cyLogical;
long cyHimetric; LONG cyHimetric;
IConnectionPoint *pPropertyNotifyCP; IConnectionPoint *pPropertyNotifyCP;
IConnectionPoint *pFontEventsCP; IConnectionPoint *pFontEventsCP;
......
...@@ -938,7 +938,7 @@ typedef struct tagITypeLibImpl ...@@ -938,7 +938,7 @@ typedef struct tagITypeLibImpl
BSTR DocString; BSTR DocString;
BSTR HelpFile; BSTR HelpFile;
BSTR HelpStringDll; BSTR HelpStringDll;
unsigned long dwHelpContext; DWORD dwHelpContext;
int TypeInfoCount; /* nr of typeinfo's in librarry */ int TypeInfoCount; /* nr of typeinfo's in librarry */
struct tagITypeInfoImpl *pTypeInfo; /* linked list of type info data */ struct tagITypeInfoImpl *pTypeInfo; /* linked list of type info data */
int ctCustData; /* number of items in cust data list */ int ctCustData; /* number of items in cust data list */
...@@ -1058,8 +1058,8 @@ typedef struct tagITypeInfoImpl ...@@ -1058,8 +1058,8 @@ typedef struct tagITypeInfoImpl
BSTR Name; BSTR Name;
BSTR DocString; BSTR DocString;
BSTR DllName; BSTR DllName;
unsigned long dwHelpContext; DWORD dwHelpContext;
unsigned long dwHelpStringContext; DWORD dwHelpStringContext;
/* functions */ /* functions */
TLBFuncDesc * funclist; /* linked list with function descriptions */ TLBFuncDesc * funclist; /* linked list with function descriptions */
......
...@@ -760,7 +760,7 @@ static int ctl2_alloc_custdata( ...@@ -760,7 +760,7 @@ static int ctl2_alloc_custdata(
if (offset == -1) return offset; if (offset == -1) return offset;
*((unsigned short *)&This->typelib_segment_data[MSFT_SEG_CUSTDATA][offset]) = VT_UI4; *((unsigned short *)&This->typelib_segment_data[MSFT_SEG_CUSTDATA][offset]) = VT_UI4;
*((unsigned long *)&This->typelib_segment_data[MSFT_SEG_CUSTDATA][offset+2]) = V_UI4(pVarVal); *((unsigned int *)&This->typelib_segment_data[MSFT_SEG_CUSTDATA][offset+2]) = V_UI4(pVarVal);
break; break;
default: default:
......
...@@ -5571,7 +5571,9 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result) ...@@ -5571,7 +5571,9 @@ HRESULT WINAPI VarMod(LPVARIANT left, LPVARIANT right, LPVARIANT result)
V_VT(result) = VT_I8; V_VT(result) = VT_I8;
V_I8(result) = V_I8(&lv) % V_I8(&rv); V_I8(result) = V_I8(&lv) % V_I8(&rv);
TRACE("V_I8(left) == %ld, V_I8(right) == %ld, V_I8(result) == %ld\n", (long)V_I8(&lv), (long)V_I8(&rv), (long)V_I8(result)); TRACE("V_I8(left) == %s, V_I8(right) == %s, V_I8(result) == %s\n",
wine_dbgstr_longlong(V_I8(&lv)), wine_dbgstr_longlong(V_I8(&rv)),
wine_dbgstr_longlong(V_I8(result)));
/* convert left and right to the destination type */ /* convert left and right to the destination type */
rc = VariantChangeType(result, result, 0, resT); rc = VariantChangeType(result, result, 0, resT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment