Skip to content

Commit 725e7c7

Browse files
committed
chore: migrates from deprecated APIs of win32 package
1 parent 60b5ffc commit 725e7c7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

quill_native_bridge_windows/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## NEXT
6+
7+
- Migrates from deprecated APIs of [win32](https://pub.dev/packages/win32/) package.
8+
59
## 0.0.1
610

711
- Adds support for saving images.

quill_native_bridge_windows/lib/quill_native_bridge_windows.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ class QuillNativeBridgeWindows extends QuillNativeBridgePlatform {
135135
final unitSize = sizeOf<Uint8>();
136136
final htmlSize = (htmlPointer.length + 1) * unitSize;
137137

138-
final clipboardMemoryHandle =
139-
GlobalAlloc(GLOBAL_ALLOC_FLAGS.GMEM_MOVEABLE, htmlSize);
138+
final clipboardMemoryHandle = GlobalAlloc(GMEM_MOVEABLE, htmlSize);
140139
if (clipboardMemoryHandle == nullptr) {
141140
assert(
142141
false,
@@ -223,8 +222,7 @@ class QuillNativeBridgeWindows extends QuillNativeBridgePlatform {
223222
final uriPtr = TEXT('ms-photos:');
224223
final openPtr = 'open'.toNativeUtf16();
225224

226-
ShellExecute(
227-
NULL, openPtr, uriPtr, nullptr, nullptr, SHOW_WINDOW_CMD.SW_SHOWNORMAL);
225+
ShellExecute(NULL, openPtr, uriPtr, nullptr, nullptr, SW_SHOWNORMAL);
228226

229227
free(uriPtr);
230228
free(openPtr);

0 commit comments

Comments
 (0)