mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:03:25 +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
|
WINAPI
|
||||||
DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
DllMain(PVOID hinstDll, ULONG dwReason, PVOID reserved)
|
||||||
{
|
{
|
||||||
|
OSVERSIONINFOW osvi;
|
||||||
switch (dwReason)
|
switch (dwReason)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH://1
|
case DLL_PROCESS_ATTACH://1
|
||||||
/* initialize version info */
|
/* initialize version info */
|
||||||
//DPRINT1("Process Attach %d\n", nAttachCount);
|
//DPRINT1("Process Attach %d\n", nAttachCount);
|
||||||
//DPRINT1("Process Attach\n");
|
//DPRINT1("Process Attach\n");
|
||||||
_osver = GetVersion();
|
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
|
||||||
_winmajor = (_osver >> 8) & 0xFF;
|
GetVersionExW( &osvi );
|
||||||
_winminor = _osver & 0xFF;
|
_winver = (osvi.dwMajorVersion << 8) | osvi.dwMinorVersion;
|
||||||
_winver = (_winmajor << 8) + _winminor;
|
_winmajor = osvi.dwMajorVersion;
|
||||||
_osver = (_osver >> 16) & 0xFFFF;
|
_winminor = osvi.dwMinorVersion;
|
||||||
|
_osver = osvi.dwBuildNumber;
|
||||||
hHeap = HeapCreate(0, 100000, 0);
|
hHeap = HeapCreate(0, 100000, 0);
|
||||||
if (hHeap == NULL)
|
if (hHeap == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue