The MASM Forum

General => The Campus => Topic started by: xandaz on October 20, 2021, 12:58:36 AM

Title: ASSUME it becomes a problem.
Post by: xandaz on October 20, 2021, 12:58:36 AM
   Hi guys. i'm using the following code:invoke GetWindowLong,hWnd,GWL_USERDATA
mov  edi,eax
assume edi:PTR CHARFORMAT

but then i must:mov  [edi.CHARFORMAT.dwMask,CFM_COLOR
instead of just:mov [edi.dwMask,CFM_COLOR
Is this the way it is suppose to work?
Title: Re: ASSUME it becomes a problem.
Post by: HSE on October 20, 2021, 01:41:38 AM
mov [edi].dwMask, CFM_COLOR
Title: Re: ASSUME it becomes a problem.
Post by: xandaz on October 20, 2021, 01:47:25 AM
   Ahhh. So simple. I'm such an ass . Ty