[PATCH] kernel32: Remove some duplicate code.