Fix eterbug #648 (aside patch)
authorVitaly Lipatov <lav@etersoft.ru>
Mon, 28 Apr 2008 14:41:29 +0000 (18:41 +0400)
committerKonstantin Kondratyuk <kondratyuk@etersoft.ru>
Mon, 28 Apr 2008 14:41:29 +0000 (18:41 +0400)
dlls/ntdll/loader.c
dlls/ntdll/thread.c
dlls/ntdll/version.c

index ad9373de4f1d278b67fb30a076be75804839ed66..6c194f5570a3fed193f69ca1ae7bd3d92773b35b 100644 (file)
@@ -2569,7 +2569,9 @@ void __wine_init_windows_dir( const WCHAR *windir, const WCHAR *sysdir )
 
     RtlCreateUnicodeString( &windows_dir, windir );
     RtlCreateUnicodeString( &system_dir, sysdir );
+#if !defined(__FreeBSD__)
     strcpyW( user_shared_data->NtSystemRoot, windir );
+#endif
 
     /* prepend the system dir to the name of the already created modules */
     mark = &NtCurrentTeb()->Peb->LdrData->InLoadOrderModuleList;
index 45700442dafcef940454a7ac24ce0a2e32adf497..7f77c4e9b3755cff6f554bf8a37e6bd9ad944757 100644 (file)
@@ -343,12 +343,15 @@ HANDLE thread_init(void)
 
     /* initialize time values in user_shared_data */
     NtQuerySystemTime( &now );
+
+#if !defined(__FreeBSD__)
     user_shared_data->SystemTime.LowPart = now.u.LowPart;
     user_shared_data->SystemTime.High1Time = user_shared_data->SystemTime.High2Time = now.u.HighPart;
     user_shared_data->u.TickCountQuad = (now.QuadPart - server_start_time) / 10000;
     user_shared_data->u.TickCount.High2Time = user_shared_data->u.TickCount.High1Time;
     user_shared_data->TickCountLowDeprecated = user_shared_data->u.TickCount.LowPart;
     user_shared_data->TickCountMultiplier = 1 << 24;
+#endif
 
     return exe_file;
 }
index 0ea1e520ed9bc7dbda41b675f2dc3b9c78f1888f..95b59118ef695c73ae257dde3f2e39942f96d000 100644 (file)
@@ -572,12 +572,14 @@ done:
     NtCurrentTeb()->Peb->OSBuildNumber  = current_version->dwBuildNumber;
     NtCurrentTeb()->Peb->OSPlatformId   = current_version->dwPlatformId;
 
+#if ! defined(__FreeBSD__)
     user_shared_data->NtProductType      = current_version->wProductType;
     user_shared_data->ProductTypeIsValid = TRUE;
     user_shared_data->MajorNtVersion     = current_version->dwMajorVersion;
     user_shared_data->MinorNtVersion     = current_version->dwMinorVersion;
     user_shared_data->MinorNtVersion     = current_version->dwMinorVersion;
     user_shared_data->SuiteMask          = current_version->wSuiteMask;
+#endif
 
     TRACE( "got %d.%d plaform %d build %x name %s service pack %d.%d product %d\n",
            current_version->dwMajorVersion, current_version->dwMinorVersion,