Export to GitHub

miranda - issue #1626

[Jabber] Windows 8


Posted on Aug 24, 2012 by Swift Rhino

Jabber reports itself as: Microsoft (build 9200) under Windows 8...

Comment #1

Posted on Aug 24, 2012 by Happy Horse

@hosteddinner: Could you please try the attatched patch and tell me if it works? I copied some pieces of code from Crash Dumper and pasted it in the Jabber plugin, but I do not have someone with Windows 8 in my contact list.

I want someone to verify it before some it is committed

Attachments

Comment #2

Posted on Aug 24, 2012 by Swift Rhino

I didn't test your patch, but I looked at it. The switch should trigger Windows 8 not by default, rather by his real number: 2. (NT 6.2) Why did you change the other code? I think this patch is much better and includes more parts of this table (for example Professional Editon): http://msdn.microsoft.com/en-us/library/windows/desktop/ms724358%28v=vs.85%29.aspx

By the way this fixes also the Problem with Win7&8 32/64 bit version of Windows and Win7 Edition. I think yours would done this too, but not fully.

Attachments

Comment #3

Posted on Aug 25, 2012 by Happy Horse

1) Yes, Win8 should be the real number 2, agreed. 2) What other code did I change that shouldn't be changed? My Version detects 32-bit and 64-bit by the if-clause below. 3) "Professional Edition" and "Professional with Media Center" can be added of course.

Comment #4

Posted on Aug 25, 2012 by Swift Rhino

Why have you made this one?

  • if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi)) )
  • return FALSE;
  • BOOL bOsVersionInfoEx = GetVersionEx((OSVERSIONINFO *) &osvi);
  • if ( !bOsVersionInfoEx )
  • {
  • osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
  • if (!GetVersionEx((OSVERSIONINFO*)&osvi))
  • return FALSE;
  • }

and this one makes only the code longer, or do i miss something here? - pGNSI = (PGNSI) GetProcAddress( - GetModuleHandle(TEXT("kernel32.dll")), - "GetNativeSystemInfo"); + HMODULE hKernel = GetModuleHandle(TEXT("kernel32.dll")); + pGNSI = (PGNSI) GetProcAddress(hKernel,"GetNativeSystemInfo");

Comment #5

Posted on Aug 25, 2012 by Happy Horse

1) It is just a fallbach if(!bOsVersionInfoEx). I saw that in Crash Dumper Code and honestly Im not sure if it is actually needed but it cannot hurt either as I see it.

2) The variable hKernel is used in 2 places :) Its for code readability and a matter of personal coding style preferences, can be changed :)

Comment #6

Posted on Oct 20, 2012 by Swift Rhino

Please apply one of the patches before 26th, because it should be applied before a lot of people note this... Both patches do report Win8, but my does it correct (for example for Win8 Pro, wishmasters patch report Win8 Buisness, because its not catched correctly)

Comment #7

Posted on Oct 25, 2012 by Helpful Dog

(No comment was entered for this change.)

Status: New

Labels:
Type-Enhancement Priority-Low