mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +00:00
fix msvcrt data winetests
svn path=/trunk/; revision=41330
This commit is contained in:
parent
2fafd4ae3d
commit
2fca9b58ec
1 changed files with 7 additions and 5 deletions
|
@ -60,17 +60,19 @@ BOOL
|
|||
WINAPI
|
||||
DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||
{
|
||||
OSVERSIONINFOW osvi;
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH://1
|
||||
/* initialize version info */
|
||||
//DPRINT1("Process Attach %d\n", nAttachCount);
|
||||
//DPRINT1("Process Attach\n");
|
||||
_osver = GetVersion();
|
||||
_winmajor = (_osver >> 8) & 0xFF;
|
||||
_winminor = _osver & 0xFF;
|
||||
_winver = (_winmajor << 8) + _winminor;
|
||||
_osver = (_osver >> 16) & 0xFFFF;
|
||||
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
|
||||
GetVersionExW( &osvi );
|
||||
_winver = (osvi.dwMajorVersion << 8) | osvi.dwMinorVersion;
|
||||
_winmajor = osvi.dwMajorVersion;
|
||||
_winminor = osvi.dwMinorVersion;
|
||||
_osver = osvi.dwBuildNumber;
|
||||
hHeap = HeapCreate(0, 100000, 0);
|
||||
if (hHeap == NULL)
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue