forked from Mirrors/wine-wine
Store the SysIP property using a string to avoid trouble with 16-bit
apps that don't expect an atom.oldstable
parent
3ff8239dfe
commit
64329de2a6
|
@ -75,20 +75,16 @@ typedef struct
|
|||
HWND hwndIconTitle;
|
||||
} INTERNALPOS, *LPINTERNALPOS;
|
||||
|
||||
/* ----- internal variables ----- */
|
||||
|
||||
static LPCSTR atomInternalPos;
|
||||
/* ----- internal functions ----- */
|
||||
|
||||
static inline INTERNALPOS *get_internal_pos( HWND hwnd )
|
||||
{
|
||||
if (!atomInternalPos) return NULL;
|
||||
return GetPropA( hwnd, atomInternalPos );
|
||||
return GetPropA( hwnd, "SysIP" );
|
||||
}
|
||||
|
||||
static inline void set_internal_pos( HWND hwnd, INTERNALPOS *pos )
|
||||
{
|
||||
if (!atomInternalPos) atomInternalPos = (LPCSTR)(DWORD)GlobalAddAtomA("SysIP");
|
||||
SetPropA( hwnd, atomInternalPos, pos );
|
||||
SetPropA( hwnd, "SysIP", pos );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue