Added check whether unaligned memory access is allowed.
Added macros to access unaligned WORDs / DWORDs.
diff --git a/memory/environ.c b/memory/environ.c
index 6630137..e7bf71c 100644
--- a/memory/environ.c
+++ b/memory/environ.c
@@ -6,6 +6,7 @@
#include <stdlib.h>
#include <string.h>
+#include "wine/port.h"
#include "windef.h"
#include "winnls.h"
#include "winerror.h"
@@ -59,7 +60,7 @@
/* Fill the extra bytes with the program name and stuff */
#define FILL_EXTRA_ENV(p) \
*(p) = '\0'; \
- PUT_WORD( (p) + 1, 1 ); \
+ PUT_UA_WORD( (p) + 1, 1 ); \
strcpy( (p) + 3, ENV_program_name );
STARTUPINFOA current_startupinfo =