reactos/win32ss
Colin Finck 54a9cc5964 [0.4.7][PRINTING] Squashed 2 commits to fix regression CORE-14072
Symptom CORE-14072: '1C: Enterprise 8.2 Educational Edititon can't launch anymore due to "not enough memory" error'

It regressed by SVN r74513 == git 5b6e082869
Actually the most important part of this fix are just the changes in win32ss/printing/base/winspool/printers.c func GetPrinterW()
But I felt more safe when porting back the whole 2 fix-commits including the tests:
---------------------------

[PRINTING] Fix GetPrinterW, add tests for it and GetDefaultPrinterA/W, and add a proper stub for GetPrinterDriverDirectoryA.

* Pass the correct handle to _RpcGetPrinter in GetPrinterW.
* Pass an empty string instead of a NULL pointer as wszComputerName to the GetPrinterLevel* functions, because this variable is later used as source for StringCbCopyExW.
* Don't check for GetLastError() == ERROR_SUCCESS in tests. Windows apparently only sets the last error in case of failure.
  The Printing code should probably be changed similarly in a future commit.

Should fix CORE-14072

fix picked from commit 0.4.8-dev-314-g
3a69fd4e96
----------------------------
[WINSPOOL] Convert the returned Unicode string back to ANSI in GetDefaultPrinterA.

Thanks to Mark for the hint in CORE-14072!

fix picked from commit 0.4.8-dev-300-g
45b9b5c1ef
2020-11-12 01:47:59 +01:00
..
drivers
gdi [0.4.7][WIN32SS:NTGDI] Fix missing text in labels and buttons for .NET apps. 2020-11-03 14:15:09 +01:00
include
printing [0.4.7][PRINTING] Squashed 2 commits to fix regression CORE-14072 2020-11-12 01:47:59 +01:00
reactx [0.4.7][WIN32SS][NTDDRAW] Fix ddraw palette regression CORE-13714 2020-10-06 23:20:10 +02:00
user [0.4.7][WIN32SS] Fix last user visible parts of regression CORE-10855 2020-11-09 22:50:03 +01:00
CMakeLists.txt
napi.h
pch.h
sys-stubs.S
w32ksvc.db
w32ksvc.h
win32k.h
win32k.rc
win32k.spec
win32kp.h