Commit a01b18fa authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

fusion: Assembly version numbers are WORDs.

parent da1f834e
...@@ -44,7 +44,7 @@ typedef struct { ...@@ -44,7 +44,7 @@ typedef struct {
LPWSTR name; LPWSTR name;
LPWSTR culture; LPWSTR culture;
BYTE version[4]; WORD version[4];
DWORD versize; DWORD versize;
BYTE pubkey[8]; BYTE pubkey[8];
...@@ -144,28 +144,28 @@ static HRESULT WINAPI IAssemblyNameImpl_GetProperty(IAssemblyName *iface, ...@@ -144,28 +144,28 @@ static HRESULT WINAPI IAssemblyNameImpl_GetProperty(IAssemblyName *iface,
case ASM_NAME_MAJOR_VERSION: case ASM_NAME_MAJOR_VERSION:
*pcbProperty = 0; *pcbProperty = 0;
*((LPDWORD)pvProperty) = name->version[0]; *((WORD *)pvProperty) = name->version[0];
if (name->versize >= 1) if (name->versize >= 1)
*pcbProperty = sizeof(WORD); *pcbProperty = sizeof(WORD);
break; break;
case ASM_NAME_MINOR_VERSION: case ASM_NAME_MINOR_VERSION:
*pcbProperty = 0; *pcbProperty = 0;
*((LPDWORD)pvProperty) = name->version[1]; *((WORD *)pvProperty) = name->version[1];
if (name->versize >= 2) if (name->versize >= 2)
*pcbProperty = sizeof(WORD); *pcbProperty = sizeof(WORD);
break; break;
case ASM_NAME_BUILD_NUMBER: case ASM_NAME_BUILD_NUMBER:
*pcbProperty = 0; *pcbProperty = 0;
*((LPDWORD)pvProperty) = name->version[2]; *((WORD *)pvProperty) = name->version[2];
if (name->versize >= 3) if (name->versize >= 3)
*pcbProperty = sizeof(WORD); *pcbProperty = sizeof(WORD);
break; break;
case ASM_NAME_REVISION_NUMBER: case ASM_NAME_REVISION_NUMBER:
*pcbProperty = 0; *pcbProperty = 0;
*((LPDWORD)pvProperty) = name->version[3]; *((WORD *)pvProperty) = name->version[3];
if (name->versize >= 4) if (name->versize >= 4)
*pcbProperty = sizeof(WORD); *pcbProperty = sizeof(WORD);
break; break;
......
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